diff options
Diffstat (limited to 'lib/private/cache')
-rw-r--r-- | lib/private/cache/fileglobalgc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/cache/fileglobalgc.php b/lib/private/cache/fileglobalgc.php index e170de83947..039992718ab 100644 --- a/lib/private/cache/fileglobalgc.php +++ b/lib/private/cache/fileglobalgc.php @@ -47,6 +47,7 @@ class FileGlobalGC extends Job { if (!is_dir($cacheDir)) { return; } - array_walk($this->getExpiredPaths($cacheDir, $now), 'unlink'); + $paths = $this->getExpiredPaths($cacheDir, $now); + array_walk($paths, 'unlink'); } } |