Skip to content
Snippets Groups Projects
Commit a2f82da5 authored by Andreas Fischer's avatar Andreas Fischer
Browse files

Use update() instead of put().

parent d84d5486
Branches
No related tags found
No related merge requests found
......@@ -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);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment