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.tags/v9.0beta1
@@ -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]); | |||
} | |||
} | |||