Skip to content
Permalink
Browse files

Fix error when clearing FileCache.

I made a mistake in a previous commit that did not account for dir()
returning directory names.
  • Loading branch information...
markstory committed Aug 3, 2013
1 parent 1b610a8 commit b999b4d9ae90cc187965dd1ca442585a5138127e
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Cache/Engine/FileEngine.php
@@ -263,6 +263,9 @@ protected function _clearDirectory($path, $now, $threshold) {
continue;
}
$filePath = $path . $entry;
if (is_dir($filePath)) {
continue;
}
$file = new SplFileObject($path . $entry, 'r');
if ($threshold) {

0 comments on commit b999b4d

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.