How to randomly clear the database cache - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to randomly clear the database cache (/showthread.php?tid=10549) |
How to randomly clear the database cache - El Forum - 08-04-2008 [eluser]Daniel H[/eluser] I'm not sure whether this is particularly good practice, but I'd like to randomly clear the database cache without having to log when the last clear took place. I imagine I'd do this using a hook. I'm not particularly fussed how often it is cleared and when, but every 3 or so hours seems like a suitable timeframe. Can anyone recommend a good approach here? Many thanks. |