diff options
author | Robin Appelman <robin@icewind.nl> | 2024-08-08 17:24:12 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-08-28 10:18:52 +0200 |
commit | 114db0558c7093b6a07707035c6a62c9a8bec220 (patch) | |
tree | c66ffc724c22c0b25c14cc7990e6b85425cb3fca | |
parent | c09ec952550f987a269e6e2ce2c5cae058965ce7 (diff) | |
download | nextcloud-server-114db0558c7093b6a07707035c6a62c9a8bec220.tar.gz nextcloud-server-114db0558c7093b6a07707035c6a62c9a8bec220.zip |
fix: don't make ICacheFactory depend on database
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/Server.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index aaf4c925f98..9b2a313a257 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -643,11 +643,11 @@ class Server extends ServerContainer implements IServerContainer { ArrayCache::class, ArrayCache::class ); - /** @var \OCP\IConfig $config */ - $config = $c->get(\OCP\IConfig::class); + /** @var SystemConfig $config */ + $config = $c->get(SystemConfig::class); - if ($config->getSystemValueBool('installed', false) && !(defined('PHPUNIT_RUN') && PHPUNIT_RUN)) { - if (!$config->getSystemValueBool('log_query')) { + if ($config->getValue('installed', false) && !(defined('PHPUNIT_RUN') && PHPUNIT_RUN)) { + if (!$config->getValue('log_query')) { try { $v = \OC_App::getAppVersions(); } catch (\Doctrine\DBAL\Exception $e) { @@ -671,10 +671,10 @@ class Server extends ServerContainer implements IServerContainer { return new \OC\Memcache\Factory($prefix, $c->get(LoggerInterface::class), $profiler, - $config->getSystemValue('memcache.local', null), - $config->getSystemValue('memcache.distributed', null), - $config->getSystemValue('memcache.locking', null), - $config->getSystemValueString('redis_log_file') + $config->getValue('memcache.local', null), + $config->getValue('memcache.distributed', null), + $config->getValue('memcache.locking', null), + $config->getValue('redis_log_file') ); } return $arrayCacheFactory; |