Skip to content
Snippets Groups Projects
Unverified Commit 4cbea5f7 authored by Daniel Kesselberg's avatar Daniel Kesselberg
Browse files

Remove value from cache on delete/clear

parent 5cf38254
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment