diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-03-13 18:18:04 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-03-13 18:18:04 +0100 |
commit | dde5353f98668132f2a98312530b70029b07f30e (patch) | |
tree | 28b94c184caf91a3af13468768181613775f7dc5 /lib/private/Server.php | |
parent | 274106b80bba79103b24d0291822a2e8faa50d20 (diff) | |
download | nextcloud-server-dde5353f98668132f2a98312530b70029b07f30e.tar.gz nextcloud-server-dde5353f98668132f2a98312530b70029b07f30e.zip |
Properly provide local memcache check to ICacheFactory
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index af739c91b02..b404af5613d 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -567,7 +567,7 @@ class Server extends ServerContainer implements IServerContainer { $this->registerService(\OCP\Route\IRouter::class, function (Server $c) { $cacheFactory = $c->getMemCacheFactory(); $logger = $c->getLogger(); - if ($cacheFactory->isAvailableLowLatency()) { + if ($cacheFactory->isLocalCacheAvailable()) { $router = new \OC\Route\CachingRouter($cacheFactory->createLocal('route'), $logger); } else { $router = new \OC\Route\Router($logger); @@ -581,7 +581,7 @@ class Server extends ServerContainer implements IServerContainer { }); $this->registerAlias('Search', \OCP\ISearch::class); - $this->registerService(\OC\Security\RateLimiting\Limiter::class, function ($c) { + $this->registerService(\OC\Security\RateLimiting\Limiter::class, function (Server $c) { return new \OC\Security\RateLimiting\Limiter( $this->getUserSession(), $this->getRequest(), |