Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove value from cache on delete/clear
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Oct 8, 2018
commit 4cbea5f7e123136f081dbe56da7f37cf9b9e41c4
2 changes: 2 additions & 0 deletions apps/files_external/lib/Lib/Storage/AmazonS3.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ private function cleanKey($path) {

private function clearCache() {
$this->objectCache = new CappedMemoryCache();
$this->filesCache = new CappedMemoryCache();
}

private function invalidateCache($key) {
Expand All @@ -109,6 +110,7 @@ private function invalidateCache($key) {
unset($this->objectCache[$existingKey]);
}
}
unset($this->filesCache[$key]);
}

/**
Expand Down