diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-01-14 13:54:07 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-01-14 13:54:07 +0100 |
commit | 203d5d01cabae52373f556d50f2bb541560eb4b0 (patch) | |
tree | c2d778d8bdf6c03d739e1d2c0e3f5c22da213dbc /lib | |
parent | 3c0e4a3bc6fadc950fca73a104aa1860814061ab (diff) | |
download | nextcloud-server-203d5d01cabae52373f556d50f2bb541560eb4b0.tar.gz nextcloud-server-203d5d01cabae52373f556d50f2bb541560eb4b0.zip |
Use storage_mtime when determining if we can reuse cached data while scanning
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/cache/scanner.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php index a8c069ee99f..92a4c01841b 100644 --- a/lib/private/files/cache/scanner.php +++ b/lib/private/files/cache/scanner.php @@ -122,7 +122,7 @@ class Scanner extends BasicEmitter { $propagateETagChange = true; } // only reuse data if the file hasn't explicitly changed - if (isset($data['mtime']) && isset($cacheData['mtime']) && $data['mtime'] === $cacheData['mtime']) { + if (isset($data['storage_mtime']) && isset($cacheData['storage_mtime']) && $data['storage_mtime'] === $cacheData['storage_mtime']) { if (($reuseExisting & self::REUSE_SIZE) && ($data['size'] === -1)) { $data['size'] = $cacheData['size']; } |