Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/CapabilitiesService.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Service/CapabilitiesService.php b/lib/Service/CapabilitiesService.php
index 981b3640..58115795 100644
--- a/lib/Service/CapabilitiesService.php
+++ b/lib/Service/CapabilitiesService.php
@@ -113,6 +113,10 @@ class CapabilitiesService {
}
$this->capabilities = $capabilities;
- $this->cache->set('capabilities', $capabilities, 3600);
+ $ttl = 3600;
+ if (count($capabilities) === 0)
+ $ttl = 60;
+
+ $this->cache->set('capabilities', $capabilities, $ttl);
}
}