diff options
author | Robin Appelman <robin@icewind.nl> | 2018-01-29 15:09:15 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-12 20:23:10 +0100 |
commit | 2a6f8e65c2de924e87fa00571dfbe6449645a437 (patch) | |
tree | 53cf62f3c5c5cd42a41efd4e9bbd2a4e69882fd1 /apps/files_external | |
parent | 3257bf24246b44a84dfdfa061304920b7ab084f3 (diff) | |
download | nextcloud-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.php | 2 |
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]); } } |