CodeIgniter Forums
deleting of cache files on expiration? - 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: deleting of cache files on expiration? (/showthread.php?tid=38183)



deleting of cache files on expiration? - El Forum - 02-01-2011

[eluser]Yednotek[/eluser]
Hi,


I recently started caching certain controllers with an expiration time of 5 minutes like so:
$this->output->cache(5);

However, the cache files are never deleted and the numbers are starting to add up way too fast.

Is there a way to have cache files automatically deleted (soon) after they expire or do I have to set up a cron job for this?


deleting of cache files on expiration? - El Forum - 02-15-2011

[eluser]Yednotek[/eluser]
Anyone?