Skip to content

Commit 563b292

Browse files
authored
Merge pull request #707 from nextcloud/backport/703/stable31
[stable31] fix: APCu cache condition
2 parents d17924c + b4db2e1 commit 563b292

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Service/ExAppService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public function __construct(
6767
$distributedCacheClass = ltrim($config->getSystemValueString('memcache.distributed', ''), '\\');
6868
$localCacheClass = ltrim($config->getSystemValueString('memcache.local', ''), '\\');
6969
if (
70-
($distributedCacheClass === '' && ($localCacheClass !== \OC\Memcache\APCu::class)) &&
71-
($distributedCacheClass !== \OC\Memcache\APCu::class)
70+
($distributedCacheClass === '' && $localCacheClass !== \OC\Memcache\APCu::class) ||
71+
($distributedCacheClass !== '' && $distributedCacheClass !== \OC\Memcache\APCu::class)
7272
) {
7373
$this->cache = $cacheFactory->createDistributed(Application::APP_ID . '/service');
7474
}

0 commit comments

Comments
 (0)