Caching forever until the file has been edited by the backend |
[eluser]Otemu[/eluser]
Hi, Doesn't seem there is an option to cache the page forever, you could put an extremely long number: $config['cache_expiry'] = 100 * 1440 * 365; $this->output->cache($config['cache_expiry']); This will set expiry time to about a 100 years. When someone edits/updates the page then you would need to delete the cache file, maybe run a function on update that checks if a cache file exists and if so delete that file. Also check out Phil Strurgeon cache library seems to be quite popular: https://github.com/philsturgeon/codeigniter-cache |
Messages In This Thread |
Caching forever until the file has been edited by the backend - by El Forum - 02-14-2013, 07:46 PM
Caching forever until the file has been edited by the backend - by El Forum - 02-15-2013, 05:43 AM
Caching forever until the file has been edited by the backend - by El Forum - 02-15-2013, 09:40 AM
|