Cache: fix scanner trying to use existing data when file isn't in cache
This commit is contained in:
parent
f2baf1ae0e
commit
b54dcd1999
|
@ -74,8 +74,7 @@ class Scanner {
|
|||
$this->scanFile($parent);
|
||||
}
|
||||
}
|
||||
if ($checkExisting) {
|
||||
$cacheData = $this->cache->get($file);
|
||||
if ($checkExisting and $cacheData = $this->cache->get($file)) {
|
||||
if ($data['size'] === -1) {
|
||||
$data['size'] = $cacheData['size'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue