diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-10-08 16:40:39 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-10-08 16:40:39 +0200 |
commit | 4cbea5f7e123136f081dbe56da7f37cf9b9e41c4 (patch) | |
tree | b5755db5d9e44abb6d0916ec5dc1bada4ad472e6 | |
parent | 5cf38254bbf8d689a3205a098405e9e9120ec01d (diff) | |
download | nextcloud-server-4cbea5f7e123136f081dbe56da7f37cf9b9e41c4.tar.gz nextcloud-server-4cbea5f7e123136f081dbe56da7f37cf9b9e41c4.zip |
Remove value from cache on delete/clear
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r-- | apps/files_external/lib/Lib/Storage/AmazonS3.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index c1b68abf7fb..9d2e0c91099 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -98,6 +98,7 @@ class AmazonS3 extends \OC\Files\Storage\Common { private function clearCache() { $this->objectCache = new CappedMemoryCache(); + $this->filesCache = new CappedMemoryCache(); } private function invalidateCache($key) { @@ -109,6 +110,7 @@ class AmazonS3 extends \OC\Files\Storage\Common { unset($this->objectCache[$existingKey]); } } + unset($this->filesCache[$key]); } /** |