summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-01-29 15:09:15 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-12 20:23:10 +0100
commit2a6f8e65c2de924e87fa00571dfbe6449645a437 (patch)
tree53cf62f3c5c5cd42a41efd4e9bbd2a4e69882fd1 /apps/files_external
parent3257bf24246b44a84dfdfa061304920b7ab084f3 (diff)
downloadnextcloud-server-2a6f8e65c2de924e87fa00571dfbe6449645a437.tar.gz
nextcloud-server-2a6f8e65c2de924e87fa00571dfbe6449645a437.zip
fix invalidating folder cache for s3
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Lib/Storage/AmazonS3.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php
index 7f2f59bbac3..c8465997f65 100644
--- a/apps/files_external/lib/Lib/Storage/AmazonS3.php
+++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php
@@ -101,7 +101,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
$keys = array_keys($this->objectCache->getData());
$keyLength = strlen($key);
foreach ($keys as $existingKey) {
- if (substr($existingKey, 0, $keyLength) === $keys) {
+ if (substr($existingKey, 0, $keyLength) === $key) {
unset($this->objectCache[$existingKey]);
}
}