Skip to content
Snippets Groups Projects
Commit b54dcd19 authored by Robin Appelman's avatar Robin Appelman
Browse files

Cache: fix scanner trying to use existing data when file isn't in cache

parent f2baf1ae
No related branches found
No related tags found
No related merge requests found
...@@ -74,8 +74,7 @@ class Scanner { ...@@ -74,8 +74,7 @@ class Scanner {
$this->scanFile($parent); $this->scanFile($parent);
} }
} }
if ($checkExisting) { if ($checkExisting and $cacheData = $this->cache->get($file)) {
$cacheData = $this->cache->get($file);
if ($data['size'] === -1) { if ($data['size'] === -1) {
$data['size'] = $cacheData['size']; $data['size'] = $cacheData['size'];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment