CodeIgniter Forums

Full Version: Codeigniter Caching __construct conditionals
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


I am writing a codeigniter application at the moment that relies on users being logged in and having data stored in their session. I am trying to use CI caching but I am wondering if CodeIgniter still executes the code in the __construct statement in the controller even if the page being requested has a cached version to be served to the browser?

I'd really appreciate any info you guys can offer me

Thanks in advance


El Forum

If the cahced version of the page exists, it won't reach the controler
See the flow chart for more info