Use update() instead of put().

This commit is contained in:
Andreas Fischer 2013-09-20 23:52:05 +02:00
parent d84d548618
commit a2f82da572
1 changed files with 1 additions and 3 deletions

View 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);
}
}
}