mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Don't update the mtime if the storage mtime hasn't changed
This commit is contained in:
parent
b5f0a17918
commit
3e73251750
1 changed files with 1 additions and 0 deletions
1
lib/private/files/cache/scanner.php
vendored
1
lib/private/files/cache/scanner.php
vendored
|
|
@ -129,6 +129,7 @@ class Scanner extends BasicEmitter {
|
|||
}
|
||||
// only reuse data if the file hasn't explicitly changed
|
||||
if (isset($data['storage_mtime']) && isset($cacheData['storage_mtime']) && $data['storage_mtime'] === $cacheData['storage_mtime']) {
|
||||
$data['mtime'] = $cacheData['mtime'];
|
||||
if (($reuseExisting & self::REUSE_SIZE) && ($data['size'] === -1)) {
|
||||
$data['size'] = $cacheData['size'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue