From e4b451491b11682b7f58df4c709b69bfbac76c9c Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 31 Mar 2016 21:52:23 +0200 Subject: make sure that we always remove the file again from the cache after the version was created --- lib/private/files/storage/wrapper/encryption.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php index a0253722c5b..1add4d7fd0a 100644 --- a/lib/private/files/storage/wrapper/encryption.php +++ b/lib/private/files/storage/wrapper/encryption.php @@ -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 -- cgit v1.2.3