summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-06-05 10:08:25 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-05 10:08:25 +0200
commit3e732517503b50e8d399d1554e08a66eb114ffaf (patch)
treea3553fae1002a06385fabd6091312fb20a5b1d1f /lib
parentb5f0a179187bb3f10a939518c6eba72593c1f7a5 (diff)
downloadnextcloud-server-3e732517503b50e8d399d1554e08a66eb114ffaf.tar.gz
nextcloud-server-3e732517503b50e8d399d1554e08a66eb114ffaf.zip
Don't update the mtime if the storage mtime hasn't changed
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/scanner.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php
index 6cb9807f5a7..1315d027c49 100644
--- a/lib/private/files/cache/scanner.php
+++ b/lib/private/files/cache/scanner.php
@@ -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'];
}