diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2016-03-31 21:52:23 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2016-03-31 21:52:23 +0200 |
commit | e4b451491b11682b7f58df4c709b69bfbac76c9c (patch) | |
tree | 8b382e2ca8b89bcd97b1f4410ddcb809cc806402 | |
parent | 6d40e69e2916792b8a0aa6ee5747dc919f758e89 (diff) | |
download | nextcloud-server-e4b451491b11682b7f58df4c709b69bfbac76c9c.tar.gz nextcloud-server-e4b451491b11682b7f58df4c709b69bfbac76c9c.zip |
make sure that we always remove the file again from the cache after the version was created
-rw-r--r-- | lib/private/files/storage/wrapper/encryption.php | 1 |
1 files changed, 1 insertions, 0 deletions
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 |