Caching Queries - 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: Caching Queries (/showthread.php?tid=7436) |
Caching Queries - El Forum - 04-09-2008 [eluser]JasonS[/eluser] I have read the documentation. I still have one or two questions. How long is the duration of a cached item? How do I set it? Is it possible to caching off by default and only enable it for a couple of queries? Caching Queries - El Forum - 04-09-2008 [eluser]Pascal Kriete[/eluser] The query cache does not expire. You can clear it manually when you update the database using the delete function. The enabled/disabled functionality is defined in the database.php class, to turn it on for a specific query you would simply call $this->db->cache_on(); It's all in here. |