CodeIgniter Forums
deleting of cache files on expiration? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: deleting of cache files on expiration? (/thread-38183.html)



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?