mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Merge pull request #4304 from mtak3/ignore_exception_cache_file_engine
Ignore RuntimeException
This commit is contained in:
commit
90499971e0
1 changed files with 5 additions and 1 deletions
|
@ -275,7 +275,11 @@ class FileEngine extends CacheEngine {
|
|||
if (!file_exists($filePath) || is_dir($filePath)) {
|
||||
continue;
|
||||
}
|
||||
$file = new SplFileObject($path . $entry, 'r');
|
||||
try {
|
||||
$file = new SplFileObject($path . $entry, 'r');
|
||||
} catch (RuntimeException $e) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($threshold) {
|
||||
$mtime = $file->getMTime();
|
||||
|
|
Loading…
Add table
Reference in a new issue