mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Use cache update instead of put for encryption version
Saves a call to fetch the file id which didn't even work for a reason. This fix properly sets the version in the database.
This commit is contained in:
parent
6724f76573
commit
45c78476f5
1 changed files with 1 additions and 1 deletions
|
|
@ -441,7 +441,7 @@ class KeyManager {
|
|||
|
||||
if($fileInfo !== false) {
|
||||
$cache = $fileInfo->getStorage()->getCache();
|
||||
$cache->put($path, ['fileid' => $fileInfo->getId(), 'encrypted' => $version, 'encryptedVersion' => $version]);
|
||||
$cache->update($fileInfo->getId(), ['encrypted' => $version, 'encryptedVersion' => $version]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue