[eluser]ariok[/eluser]
From system/database/DB_cache.php
Code:
function delete_all()
{
delete_files($this->CI->db->cachedir, [b]TRUE[/b]);
}
The problem is the TRUE value.. it say to file function to delete also the main directory.
This is a big problem when i don't know which pages could generate caching.
example: if i need to cache authentication for groups.
I have a function auth() in my authenticate library... and this function check if some groups of a user have access to a page.
The Auth() function is placed in all private pages.. and so it generate X dirs in my cache dir
example, private+page1, private+page2 etc..
So it would be really useful delete all these directories when i update groups.