diff options
Diffstat (limited to 'lib/private/cache')
-rw-r--r-- | lib/private/cache/fileglobalgc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/cache/fileglobalgc.php b/lib/private/cache/fileglobalgc.php index 57068736104..0d966282383 100644 --- a/lib/private/cache/fileglobalgc.php +++ b/lib/private/cache/fileglobalgc.php @@ -72,7 +72,9 @@ class FileGlobalGC extends Job { } $paths = $this->getExpiredPaths($cacheDir, $now); array_walk($paths, function($file) { - unlink($file); + if (file_exists($file)) { + unlink($file); + } }); } } |