mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fix unlink() for CacheEngine::clear() failed on windows.
This commit is contained in:
parent
49d66af12e
commit
dc381dd4d3
1 changed files with 3 additions and 1 deletions
|
@ -281,7 +281,9 @@ class FileEngine extends CacheEngine {
|
|||
}
|
||||
}
|
||||
if ($file->isFile()) {
|
||||
unlink($file->getRealPath());
|
||||
$_path = $file->getRealPath();
|
||||
unset($file);
|
||||
unlink($_path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue