Welcome Guest, Not a member yet? Register   Sign In
DB caching problem
#1

[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
#2

[eluser]veledrom[/eluser]
I assume that no one knows anything about it.
#3

[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.
#4

[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.




Theme © iAndrew 2016 - Forum software by © MyBB