Welcome Guest, Not a member yet? Register   Sign In
database caching - sub folder under controller - issue
#1

[eluser]tapan.thapa[/eluser]
Hi Friends,

I don't know if this has been answered previously but i have not found my query under previous topics.

I have enabled database caching under database.php ($db['default']['cache_on'] = TRUE;
$db['default']['cachedir'] = 'application/cache'Wink config file and it is working fine however i have noticed that folders which are getting created under cache directory is not just as my controller folders are organized.

For example under application/controller folder i have a controller by the name welcome controller. Under which i have three methods and all three methods are having single select query.

now cache directory are getting populated like below.

cache/welcome+index
cache/welcome+home
cache/welcome+show

perfectly working fine till now.

Second example, i have a folder named admin under controller folder (like application/controller/admin) under which i have one controller login (This is also having three methods i.e. enquiry, newsletter and leads) now cache directory which is getting created under cache folder are as follows.

cache/admin+login

Not working as expected.

Just because of above issue, i am not able to clear data of a particulate method which resides under login controller. If i need to clear data of any method which resides under login controller than unfortunately, i have to remove whole folder like $this->db->cache_delete('admin', 'login');.

Please suggest any fix.

:-(

Thanks & Regards
Tapan Thapa




Theme © iAndrew 2016 - Forum software by © MyBB