Skip to content

Commit 2d400e8

Browse files
authored
Merge pull request #706 from nextcloud/backport/703/stable32
[stable32] fix: APCu cache condition
2 parents d7d8965 + 79b1fb2 commit 2d400e8

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
@@ -60,8 +60,8 @@ public function __construct(
6060
$distributedCacheClass = ltrim($config->getSystemValueString('memcache.distributed', ''), '\\');
6161
$localCacheClass = ltrim($config->getSystemValueString('memcache.local', ''), '\\');
6262
if (
63-
($distributedCacheClass === '' && ($localCacheClass !== \OC\Memcache\APCu::class)) &&
64-
($distributedCacheClass !== \OC\Memcache\APCu::class)
63+
($distributedCacheClass === '' && $localCacheClass !== \OC\Memcache\APCu::class) ||
64+
($distributedCacheClass !== '' && $distributedCacheClass !== \OC\Memcache\APCu::class)
6565
) {
6666
$this->cache = $cacheFactory->createDistributed(Application::APP_ID . '/service');
6767
}

0 commit comments

Comments
 (0)