From 4cbea5f7e123136f081dbe56da7f37cf9b9e41c4 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Mon, 8 Oct 2018 16:40:39 +0200 Subject: Remove value from cache on delete/clear Signed-off-by: Daniel Kesselberg --- apps/files_external/lib/Lib/Storage/AmazonS3.php | 2 ++ 1 file changed, 2 insertions(+) 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]); } /** -- cgit v1.2.3