Browse Source
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>
tags/v21.0.0beta1
Roeland Jago Douma
3 years ago
No account linked to committer's email address
|
|
@@ -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); |
|
|
@@ -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) { |