aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Storage/Swift.php
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-27 19:07:09 +0330
committerGitHub <noreply@github.com>2023-06-27 19:07:09 +0330
commitbbfe2fb821f00713f46fd896a41dfc62cc02c31a (patch)
tree22923a6d3a78f7f1d780e958ff118a669c6c8c63 /apps/files_external/lib/Lib/Storage/Swift.php
parent8c64ccae01ef3143a47dcca0b7ddb115d601c2f1 (diff)
parent266436b76788d14e061bbe1f013bc052edc8041f (diff)
downloadnextcloud-server-bbfe2fb821f00713f46fd896a41dfc62cc02c31a.tar.gz
nextcloud-server-bbfe2fb821f00713f46fd896a41dfc62cc02c31a.zip
Merge branch 'master' into replace_strpos_calls_in_dav_app
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'apps/files_external/lib/Lib/Storage/Swift.php')
-rw-r--r--apps/files_external/lib/Lib/Storage/Swift.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php
index 85b3727f4db..26e6c5315cb 100644
--- a/apps/files_external/lib/Lib/Storage/Swift.php
+++ b/apps/files_external/lib/Lib/Storage/Swift.php
@@ -126,9 +126,10 @@ class Swift extends \OC\Files\Storage\Common {
* @throws \OCP\Files\StorageNotAvailableException
*/
private function fetchObject(string $path) {
- if ($this->objectCache->hasKey($path)) {
+ $cached = $this->objectCache->get($path);
+ if ($cached !== null) {
// might be "false" if object did not exist from last check
- return $this->objectCache->get($path);
+ return $cached;
}
try {
$object = $this->getContainer()->getObject($path);