Query caching time |
[eluser]Ngulo[/eluser]
hi i red the guide to cache my queries i just do : $this->db->start_cache(); $query-> .... $this->db->stop_cache(); but i didn't catched how to set cache time for each query i want to cache? thanks
[eluser]osci[/eluser]
You don't set cache time. In the guide it says Quote:Managing your Cache Files You have to delete the related cache queries and recreate them each time you make an update to db.
[eluser]patwork[/eluser]
Well, I'm afraid you're talking about two different things. This functions are only Active Record cache, not real query results cache. You're talking about: http://ellislab.com/codeigniter/user-gui...ml#caching And you should try: http://ellislab.com/codeigniter/user-gui...ching.html Anyway, osci is right, cache do not expire and you must delete is manually.
[eluser]marcogmonteiro[/eluser]
What about html cache? In the manual you can set an expiration time. is there a function to deleted?
[eluser]Ngulo[/eluser]
thanks guys yep i mistaked about ![]() just some one knows if is out some CI lib to set query caching in time? ![]() |
Welcome Guest, Not a member yet? Register Sign In |