Use update() instead of put().
This commit is contained in:
parent
d84d548618
commit
a2f82da572
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue