diff --git a/lib/Service/ExAppService.php b/lib/Service/ExAppService.php index ef9272f0..693ff263 100644 --- a/lib/Service/ExAppService.php +++ b/lib/Service/ExAppService.php @@ -60,8 +60,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'); }