Skip to content

Commit 515efa2

Browse files
committed
fix(Memcache): use different cache key when in maintenance mode
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 32c149e commit 515efa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Memcache/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected function getGlobalPrefix(): string {
114114
if ($this->globalPrefix === null) {
115115
$config = \OCP\Server::get(SystemConfig::class);
116116
$versions = [];
117-
if ($config->getValue('installed', false)) {
117+
if ($config->getValue('installed', false) && !$config->getValue('maintenance', false)) {
118118
$appConfig = \OCP\Server::get(IAppConfig::class);
119119
// only get the enabled apps to clear the cache in case an app is enabled or disabled (e.g. clear routes)
120120
$versions = $appConfig->getAppInstalledVersions(true);

0 commit comments

Comments
 (0)