From 011bca7b7f0a67c9cf23773b625ee334db1e6c06 Mon Sep 17 00:00:00 2001
From: Andreas Fischer <bantu@owncloud.com>
Date: Fri, 20 Sep 2013 23:53:02 +0200
Subject: [PATCH] Only update the etag. Do not re-submit any other unchanged
 data.

---
 lib/files/cache/scanner.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index 3f1970fb4a..fcb8ccdc8d 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),
+									));
 								}
 							}
 						}
-- 
GitLab