Welcome Guest, Not a member yet? Register   Sign In
cache_delete() not working
#1

[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;
$db['default']['cachedir'] = 'application/queries/';

The cache is manually active right before the select, and after a insert I try to delete that specific cache...
#2

[eluser]ibnclaudius[/eluser]
The problem was in the slashes.

changes from:
Code:
$db['default']['cachedir'] = 'application/queries/';
to:
Code:
$db['default']['cachedir'] = '/application/queries/';
#3

[eluser]ibnclaudius[/eluser]
No, it wasnt.

The cache is not set with the new slashes..
#4

[eluser]ibnclaudius[/eluser]
Got it.

Code:
$db['default']['cachedir'] = './application/queries/';




Theme © iAndrew 2016 - Forum software by © MyBB