![]() |
DB caching problem - 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: DB caching problem (/showthread.php?tid=50132) |
DB caching problem - El Forum - 03-15-2012 [eluser]veledrom[/eluser] Hi, $this->db->cache_on(); creates folder called cont+meth $this->db->cache_delete('cont', 'meth'); doesn't delete folder above. $this->db->cache_delete_all(); removes everything from main cache folder including htaccess and index.php database.php Code: $db['default']['cachedir'] = './application/cache'; config.php Code: $config['cache_path'] = ''; Can anyone tell me why $this->db->cache_delete('cont', 'meth'); doesn't work? Thanks in advance DB caching problem - El Forum - 03-19-2012 [eluser]veledrom[/eluser] I assume that no one knows anything about it. DB caching problem - El Forum - 03-19-2012 [eluser]boltsabre[/eluser] Quote:Can anyone tell me why $this->db->cache_delete(‘cont’, ‘meth’); doesn’t work? I believe this will only delete the contents of the folder, not the actual folder itself. I imaging if you want to actually delete the folder itself you'll have to code that in native php, but in all honestly I cannot really see a reason to delete the folder itself. DB caching problem - El Forum - 03-21-2012 [eluser]veledrom[/eluser] It doesn't even delete content. Also, don't worry about this post because I started using Phil Sturgeon's cache library instead. |