summaryrefslogtreecommitdiffstats
path: root/lib/files/cache/scanner.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/files/cache/scanner.php')
-rw-r--r--lib/files/cache/scanner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index b27b3555c91..ec216264429 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -74,7 +74,7 @@ class Scanner {
$this->scanFile($parent);
}
}
- if ($data['size'] === -1 and $cacheData = $this->cache->get($file)) {
+ if ($checkExisting and $data['size'] === -1 and $cacheData = $this->cache->get($file)) {
$data['size'] = $cacheData['size'];
}
$this->cache->put($file, $data);