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

This commit is contained in:
Bjoern Schiessle 2016-03-31 21:52:23 +02:00
parent 6d40e69e29
commit e4b451491b

View file

@ -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