diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-03-17 12:35:47 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-03-17 12:35:47 +0100 |
commit | 9e2ebf2dcea8d3e1ee153eba43124ca95c496443 (patch) | |
tree | d48d32dcd87aa77304c7dd9f0acc6d79fd2993fd /apps/files_sharing/public.php | |
parent | d96b97043b2fa7ba4d676c1d7b44f4aa5e58c8ee (diff) | |
download | nextcloud-server-9e2ebf2dcea8d3e1ee153eba43124ca95c496443.tar.gz nextcloud-server-9e2ebf2dcea8d3e1ee153eba43124ca95c496443.zip |
Cache \OC\URLGenerator::imagePath
\OC\URLGenerator::imagePath is a really expensive operation due to all the I/O handling and can really benefit from caching.
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 50a6432dd95..9e4e8d23151 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -10,7 +10,7 @@ // This file is just used to redirect the legacy sharing URLs (< ownCloud 8) to the new ones -$urlGenerator = new \OC\URLGenerator(\OC::$server->getConfig()); +$urlGenerator = \OC::$server->getURLGenerator(); $token = isset($_GET['t']) ? $_GET['t'] : ''; $route = isset($_GET['download']) ? 'files_sharing.sharecontroller.downloadShare' : 'files_sharing.sharecontroller.showShare'; |