Browse Source

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.
tags/v9.0beta1
Vincent Petry 8 years ago
parent
commit
45c78476f5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/encryption/lib/keymanager.php

+ 1
- 1
apps/encryption/lib/keymanager.php View File

@@ -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…
Cancel
Save