Skip to content
Permalink
Browse files

Fix unlink() for CacheEngine::clear() failed on windows.

  • Loading branch information...
hiromi2424
hiromi2424 committed Aug 8, 2013
1 parent 49d66af commit dc381dd4d365fbd60f0e3e6f0a2f9d890077ba65
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Cache/Engine/FileEngine.php
@@ -281,7 +281,9 @@ protected function _clearDirectory($path, $now, $threshold) {
}
}
if ($file->isFile()) {
unlink($file->getRealPath());
$_path = $file->getRealPath();
unset($file);
unlink($_path);
}
}
}

0 comments on commit dc381dd

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.