diff --git a/lib/Service/ExAppService.php b/lib/Service/ExAppService.php index 6cb98c30..9cbb2a4c 100644 --- a/lib/Service/ExAppService.php +++ b/lib/Service/ExAppService.php @@ -67,8 +67,8 @@ public function __construct( $distributedCacheClass = ltrim($config->getSystemValueString('memcache.distributed', ''), '\\'); $localCacheClass = ltrim($config->getSystemValueString('memcache.local', ''), '\\'); if ( - ($distributedCacheClass === '' && ($localCacheClass !== \OC\Memcache\APCu::class)) && - ($distributedCacheClass !== \OC\Memcache\APCu::class) + ($distributedCacheClass === '' && $localCacheClass !== \OC\Memcache\APCu::class) || + ($distributedCacheClass !== '' && $distributedCacheClass !== \OC\Memcache\APCu::class) ) { $this->cache = $cacheFactory->createDistributed(Application::APP_ID . '/service'); }