diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-10-26 11:42:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-26 11:42:30 +0200 |
commit | a9f78856b55584d5a40c731adc6f6fb188f261dd (patch) | |
tree | 71a38bf439fe1ac37c6c814df8a839b5406b7eba /lib | |
parent | 37bedbc10d8802e573a63ec255ec410a2896a91a (diff) | |
parent | 88cba6d8821a77d86573524eb76daee6978a551a (diff) | |
download | nextcloud-server-a9f78856b55584d5a40c731adc6f6fb188f261dd.tar.gz nextcloud-server-a9f78856b55584d5a40c731adc6f6fb188f261dd.zip |
Merge pull request #6949 from nextcloud/cachingrouter_local
Use local cache for the CachingRouter
Diffstat (limited to 'lib')
-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 29aee06d896..84c09c8e6db 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -532,8 +532,8 @@ class Server extends ServerContainer implements IServerContainer { $this->registerService(\OCP\Route\IRouter::class, function (Server $c) { $cacheFactory = $c->getMemCacheFactory(); $logger = $c->getLogger(); - if ($cacheFactory->isAvailable()) { - $router = new \OC\Route\CachingRouter($cacheFactory->create('route'), $logger); + if ($cacheFactory->isAvailableLowLatency()) { + $router = new \OC\Route\CachingRouter($cacheFactory->createLocal('route'), $logger); } else { $router = new \OC\Route\Router($logger); } |