]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use update() instead of put().
authorAndreas Fischer <bantu@owncloud.com>
Fri, 20 Sep 2013 21:52:05 +0000 (23:52 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Fri, 20 Sep 2013 21:52:05 +0000 (23:52 +0200)
lib/files/cache/scanner.php

index d296c6068653c2c1bdecf43950539215bf68c5bd..3f1970fb4a2b992ed22c86660312ff5bdbd1599a 100644 (file)
@@ -121,9 +121,7 @@ class Scanner extends BasicEmitter {
                                                                        }
                                                                        $parentCacheData = $this->cache->get($parent);
                                                                        $parentCacheData['etag'] = $this->storage->getETag($parent);
-                                                                       // the boolean to int conversion is necessary to make pg happy
-                                                                       $parentCacheData['encrypted'] = $parentCacheData['encrypted'] ? 1 : 0;
-                                                                       $this->cache->put($parent, $parentCacheData);
+                                                                       $this->cache->update($parentCacheData['fileid'], $parentCacheData);
                                                                }
                                                        }
                                                }