Welcome Guest, Not a member yet? Register   Sign In
Caching Not Based on Current Controller
#1

Hey all,

been using CodeIgniter for a long time now but just started playing around with the database caching class. In my auth library I have a call to a database which does not change much, although this query can be executed up to 5 times per page load (complex CRUD permissions within app on a per user basis.) I turned the cache on and off just for this one query. The cache did work, although this is stored based on which page I am currently viewing. Now I do not want to have X number of directories all storing the same cached object. Is there any way to store the cache based on the file in which the query is written instead of based on which page the user is currently viewing.

Hope this all makes sense,

Thanks in advance
Reply




Theme © iAndrew 2016 - Forum software by © MyBB