diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-08-03 12:50:01 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-08-03 12:50:01 +0200 |
commit | af7bcb43b1b74a5f0ad94b645d400510a2ae6bc4 (patch) | |
tree | bd4354c78f67a5fd00d7b1a4f616844c593086c8 /lib | |
parent | 4105d17133a372547396c2f4862f98423f5564e0 (diff) | |
parent | 51a67a54e06eb4119a56a0f9f21b79bdea7c43f3 (diff) | |
download | nextcloud-server-af7bcb43b1b74a5f0ad94b645d400510a2ae6bc4.tar.gz nextcloud-server-af7bcb43b1b74a5f0ad94b645d400510a2ae6bc4.zip |
Merge pull request #18009 from owncloud/enc_always_update_file_cache
let the encryption storage wrapper always update the file cache
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/storage/wrapper/encryption.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php index 51aa13065c1..4ba9b21ddb4 100644 --- a/lib/private/files/storage/wrapper/encryption.php +++ b/lib/private/files/storage/wrapper/encryption.php @@ -127,12 +127,11 @@ class Encryption extends Wrapper { $info = $this->getCache()->get($path); if (isset($this->unencryptedSize[$fullPath])) { $size = $this->unencryptedSize[$fullPath]; + // update file cache + $info['encrypted'] = true; + $info['size'] = $size; + $this->getCache()->put($path, $info); - if (isset($info['fileid'])) { - $info['encrypted'] = true; - $info['size'] = $size; - $this->getCache()->put($path, $info); - } return $size; } |