diff options
author | Robin Appelman <robin@icewind.nl> | 2018-01-29 15:09:15 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-01-29 15:09:15 +0100 |
commit | 84bd2b6bc910174ee87d7dcbfc767de05a5a22a5 (patch) | |
tree | 4878287ea9a0422f5ca2cda3e080f618514c4768 /apps | |
parent | 7afd77604eeca78d82a15d57c22716c5e4850cc7 (diff) | |
download | nextcloud-server-84bd2b6bc910174ee87d7dcbfc767de05a5a22a5.tar.gz nextcloud-server-84bd2b6bc910174ee87d7dcbfc767de05a5a22a5.zip |
fix invalidating folder cache for s3
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-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 efcae431f92..f06247c3690 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]); } } |