Skip to content

Commit b4db2e1

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

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)