Welcome Guest, Not a member yet? Register   Sign In
Codeigniter's built-in page cacher
#4

[eluser]pickupman[/eluser]
Quote:Can’t you just put the cache command inside an IF statement, that checks to see if the user is not logged in?
No, CI will first look in the cache folder for the page before doing any processing. If a page is found in the cache it will be output to the browser, and your controller is never loaded. That's why it caches the whole page rendered, so it doesn't have to re-render/process the pages again.


Messages In This Thread
Codeigniter's built-in page cacher - by El Forum - 04-25-2010, 08:10 AM
Codeigniter's built-in page cacher - by El Forum - 04-25-2010, 01:39 PM
Codeigniter's built-in page cacher - by El Forum - 04-25-2010, 02:43 PM
Codeigniter's built-in page cacher - by El Forum - 04-25-2010, 03:15 PM
Codeigniter's built-in page cacher - by El Forum - 04-25-2010, 03:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB