Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2018-10-08 17:40:39 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2018-10-08 17:40:39 +0300
commit4cbea5f7e123136f081dbe56da7f37cf9b9e41c4 (patch)
treeb5755db5d9e44abb6d0916ec5dc1bada4ad472e6
parent5cf38254bbf8d689a3205a098405e9e9120ec01d (diff)
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.php2
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]);
}
/**