fix invalidating folder cache for s3
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
c84b290a17
commit
4c903e6b0d
|
@ -102,7 +102,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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue