diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-03-17 19:36:23 +0000 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-03-17 19:36:23 +0000 |
commit | 760f5fc5e550b6444ed156c600fee7673b330857 (patch) | |
tree | 4bc3a4d709396ec57ebbf62aa29964246f8474c8 /lib/private/server.php | |
parent | ebb834d879f10ea24b8cf032f6f0000076843195 (diff) | |
parent | 1f4aa5350aa72d8b8aeb0d93929c19e32f48cd6b (diff) | |
download | nextcloud-server-760f5fc5e550b6444ed156c600fee7673b330857.tar.gz nextcloud-server-760f5fc5e550b6444ed156c600fee7673b330857.zip |
Merge pull request #14954 from owncloud/cache-image-path
Cache \OC\URLGenerator::imagePath
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index 6261337e0b1..c55817bb6b3 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -147,7 +147,11 @@ class Server extends SimpleContainer implements IServerContainer { }); $this->registerService('URLGenerator', function (Server $c) { $config = $c->getConfig(); - return new \OC\URLGenerator($config); + $cacheFactory = $c->getMemCacheFactory(); + return new \OC\URLGenerator( + $config, + $cacheFactory + ); }); $this->registerService('AppHelper', function ($c) { return new \OC\AppHelper(); |