diff options
author | Robin Appelman <robin@icewind.nl> | 2024-08-08 17:24:12 +0200 |
---|---|---|
committer | Louis <louis@chmn.me> | 2024-08-28 14:54:14 +0200 |
commit | b1744e70a5396d184125a3f0d743260047f971de (patch) | |
tree | 4804d2861153fc709b236b2712bfb63936daf39b | |
parent | 8eaddbc0380f0b33f099250bd195ffea77b9ed35 (diff) | |
download | nextcloud-server-b1744e70a5396d184125a3f0d743260047f971de.tar.gz nextcloud-server-b1744e70a5396d184125a3f0d743260047f971de.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 a0072b43ee2..cf0d6a72bce 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; |