mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fix error when clearing FileCache.
I made a mistake in a previous commit that did not account for dir() returning directory names.
This commit is contained in:
parent
1b610a8d62
commit
b999b4d9ae
1 changed files with 3 additions and 0 deletions
|
@ -263,6 +263,9 @@ class FileEngine extends CacheEngine {
|
|||
continue;
|
||||
}
|
||||
$filePath = $path . $entry;
|
||||
if (is_dir($filePath)) {
|
||||
continue;
|
||||
}
|
||||
$file = new SplFileObject($path . $entry, 'r');
|
||||
|
||||
if ($threshold) {
|
||||
|
|
Loading…
Add table
Reference in a new issue