mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Cache: on equal mtime also for equal size before keeping ETag, at least makes Unit Test happy
This commit is contained in:
parent
3d29a82150
commit
78c694b6ee
1 changed files with 2 additions and 1 deletions
3
lib/files/cache/scanner.php
vendored
3
lib/files/cache/scanner.php
vendored
|
|
@ -75,7 +75,8 @@ class Scanner {
|
|||
}
|
||||
}
|
||||
if($cacheData = $this->cache->get($file)) {
|
||||
if ($data['mtime'] === $cacheData['mtime']) {
|
||||
if ($data['mtime'] === $cacheData['mtime'] &&
|
||||
$data['size'] === $cacheData['size']) {
|
||||
$data['etag'] = $cacheData['etag'];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue