diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php index 8e6441d5c664..d369398af1ca 100644 --- a/lib/private/files/cache/scanner.php +++ b/lib/private/files/cache/scanner.php @@ -136,7 +136,7 @@ public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = if (is_null($cacheData)) { $cacheData = $this->cache->get($file); } - if ($cacheData and $reuseExisting) { + if ($cacheData and $reuseExisting and isset($cacheData['fileid'])) { // prevent empty etag if (empty($cacheData['etag'])) { $etag = $data['etag'];