]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only update the etag. Do not re-submit any other unchanged data.
authorAndreas Fischer <bantu@owncloud.com>
Fri, 20 Sep 2013 21:53:02 +0000 (23:53 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Fri, 20 Sep 2013 21:53:02 +0000 (23:53 +0200)
lib/files/cache/scanner.php

index 3f1970fb4a2b992ed22c86660312ff5bdbd1599a..fcb8ccdc8d5767711a52097c72257925f6747070 100644 (file)
@@ -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),
+                                                                       ));
                                                                }
                                                        }
                                                }