summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/cache/fileglobalgc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/cache/fileglobalgc.php b/lib/private/cache/fileglobalgc.php
index c95154952de..63de24fa50b 100644
--- a/lib/private/cache/fileglobalgc.php
+++ b/lib/private/cache/fileglobalgc.php
@@ -66,6 +66,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');
}
}