Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$this->cache->delete_all() deletes all files including the .htaccess and the index.html files #6

Open
lennynjuguna opened this issue Feb 26, 2013 · 2 comments

Comments

@lennynjuguna
Copy link

The method $this->cache->delete_all() deletes all the files in the folder including the .htaccess and the index.html files which are necessary for security purposes.

@vlakoff
Copy link

vlakoff commented Mar 5, 2013

The fix for codeigniter-cache depends on the version of CodeIgniter the app is running on.

  • 2.1-stable / 3.0-dev before bcit-ci/CodeIgniter@fd6c2bc (2012-04-03): no straightforward fix
  • 3.0-dev up to bcit-ci/CodeIgniter@53b8ef5 (2012-11-08): delete_files($this->_path.$dirname, TRUE, 0, TRUE);
  • 3.0-dev up to now: delete_files($this->_path.$dirname, TRUE, TRUE);

@withremote
Copy link

Here's my fix for this, I ran into the same issue this morning.
https://gist.github.com/withremote/5154366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants