CodeIgniter Forums
Caching library with no expiration but can refresh cached pages on command? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Caching library with no expiration but can refresh cached pages on command? (/showthread.php?tid=49681)



Caching library with no expiration but can refresh cached pages on command? - El Forum - 02-28-2012

[eluser]CroNiX[/eluser]
Just thought I'd check before I created one...

I need a caching library that will not expire automatically based on some arbitrary time limit. I just need a way to create a cached page from a controller (if it doesn't exist already) AND refresh that cached page if something actually changes in the backend that would affect the content of the page. I think this would be more efficient for a very large site (28k hits/day and growing) rather than regenerating the cache just because the time expired, but the content was the same.

Anybody know of something simple like this?