Skip to content
Snippets Groups Projects
Commit e4b45149 authored by Björn Schießle's avatar Björn Schießle
Browse files

make sure that we always remove the file again from the cache after the version was created

parent 6d40e69e
No related branches found
No related tags found
No related merge requests found
......@@ -699,6 +699,7 @@ class Encryption extends Wrapper {
// create a 1:1 copy of the file
$this->arrayCache->set('encryption_copy_version_' . $sourceInternalPath, true);
$result = $this->storage->copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
$this->arrayCache->remove('encryption_copy_version_' . $sourceInternalPath);
if ($result) {
$info = $this->getCache('', $sourceStorage)->get($sourceInternalPath);
// make sure that we update the unencrypted size for the version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment