Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit dc381dd4d365fbd60f0e3e6f0a2f9d890077ba65 1 parent 49d66af
@hiromi2424 hiromi2424 authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Cache/Engine/FileEngine.php
View
4 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);
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.