diff options
author | Andreas Fischer <bantu@owncloud.com> | 2013-09-20 23:52:05 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2013-09-20 23:52:05 +0200 |
commit | a2f82da572eaf9cebfe4de53b329af700d63e93f (patch) | |
tree | 3c35ada6a3131725dbf3dc921748b23ad984062b /lib/files | |
parent | d84d548618651c0a66bd2696d6547b33ca6b8e87 (diff) | |
download | nextcloud-server-a2f82da572eaf9cebfe4de53b329af700d63e93f.tar.gz nextcloud-server-a2f82da572eaf9cebfe4de53b329af700d63e93f.zip |
Use update() instead of put().
Diffstat (limited to 'lib/files')
-rw-r--r-- | lib/files/cache/scanner.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php index d296c606865..3f1970fb4a2 100644 --- a/lib/files/cache/scanner.php +++ b/lib/files/cache/scanner.php @@ -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); } } } |