Skip to content

Commit 79b1fb2

Browse files
SystemKeeperbackportbot[bot]
authored andcommitted
fix: APCu cache condition
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
1 parent d7d8965 commit 79b1fb2

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)