Merge pull request #4304 from mtak3/ignore_exception_cache_file_engine

Ignore RuntimeException
This commit is contained in:
Mark Story 2014-08-20 21:24:39 +02:00
commit 90499971e0

View file

@ -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();