Skip to content

Commit 03cc7a1

Browse files
committed
fix: APCu cache condition
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
1 parent 7188be2 commit 03cc7a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Service/ExAppService.php

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

0 commit comments

Comments
 (0)