diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-10-31 15:10:48 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-11-06 09:03:32 +0100 |
commit | 48d843858de095e83105f55d6b994ad41939f5d4 (patch) | |
tree | 1917f40099f2b0250c817288789b3ead6932ffbd | |
parent | 404785dd2bbddc644fd2064f83160904f770fc0d (diff) | |
download | nextcloud-server-48d843858de095e83105f55d6b994ad41939f5d4.tar.gz nextcloud-server-48d843858de095e83105f55d6b994ad41939f5d4.zip |
Do not setup the default FS on normal routes
This should help with load times hopefully. Only initialize the FS if we
actually ned it.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 1 | ||||
-rw-r--r-- | lib/base.php | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index c5ff6eff194..4a456574973 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -134,6 +134,7 @@ class ViewController extends Controller { * @throws \OCP\Files\NotFoundException */ protected function getStorageInfo() { + \OC_Util::setupFS(); $dirInfo = \OC\Files\Filesystem::getFileInfo('/', false); return \OC_Helper::getStorageInfo('/', $dirInfo); diff --git a/lib/base.php b/lib/base.php index 0213fa9e9ef..9c914f15431 100644 --- a/lib/base.php +++ b/lib/base.php @@ -1006,7 +1006,6 @@ class OC { OC_App::loadApps(['filesystem', 'logging']); OC_App::loadApps(); } - OC_Util::setupFS(); OC::$server->getRouter()->match(\OC::$server->getRequest()->getRawPathInfo()); return; } catch (Symfony\Component\Routing\Exception\ResourceNotFoundException $e) { |