![]() |
cache_delete() not working - 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: cache_delete() not working (/showthread.php?tid=48873) |
cache_delete() not working - El Forum - 01-31-2012 [eluser]ibnclaudius[/eluser] I'm trying to delete a specif cache, but is not working. By the way, delete all works pretty well. Code: $this->db->cache_delete_all(); The cache is saved in site+index folder, so I'm doing this: Code: $this->db->cache_delete('site', 'index'); My database cache config: Code: $db['default']['cache_on'] = FALSE; The cache is manually active right before the select, and after a insert I try to delete that specific cache... cache_delete() not working - El Forum - 01-31-2012 [eluser]ibnclaudius[/eluser] The problem was in the slashes. changes from: Code: $db['default']['cachedir'] = 'application/queries/'; Code: $db['default']['cachedir'] = '/application/queries/'; cache_delete() not working - El Forum - 01-31-2012 [eluser]ibnclaudius[/eluser] No, it wasnt. The cache is not set with the new slashes.. cache_delete() not working - El Forum - 01-31-2012 [eluser]ibnclaudius[/eluser] Got it. Code: $db['default']['cachedir'] = './application/queries/'; |