summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2013-09-20 23:53:02 +0200
committerAndreas Fischer <bantu@owncloud.com>2013-09-20 23:53:02 +0200
commit011bca7b7f0a67c9cf23773b625ee334db1e6c06 (patch)
tree3776e53f73946c68048ab8db059937c44949c186 /lib
parenta2f82da572eaf9cebfe4de53b329af700d63e93f (diff)
downloadnextcloud-server-011bca7b7f0a67c9cf23773b625ee334db1e6c06.tar.gz
nextcloud-server-011bca7b7f0a67c9cf23773b625ee334db1e6c06.zip
Only update the etag. Do not re-submit any other unchanged data.
Diffstat (limited to 'lib')
-rw-r--r--lib/files/cache/scanner.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index 3f1970fb4a2..fcb8ccdc8d5 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -120,8 +120,9 @@ class Scanner extends BasicEmitter {
$parent = '';
}
$parentCacheData = $this->cache->get($parent);
- $parentCacheData['etag'] = $this->storage->getETag($parent);
- $this->cache->update($parentCacheData['fileid'], $parentCacheData);
+ $this->cache->update($parentCacheData['fileid'], array(
+ 'etag' => $this->storage->getETag($parent),
+ ));
}
}
}