Cache: actually use parameter

This commit is contained in:
Robin Appelman 2013-02-11 13:24:56 +01:00
parent 299649b40e
commit d84c3cd014
1 changed files with 1 additions and 1 deletions

View File

@ -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);