Skip to content

Commit 48d8438

Browse files
committed
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>
1 parent 404785d commit 48d8438

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

apps/files/lib/Controller/ViewController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ protected function renderScript($appName, $scriptName) {
134134
* @throws \OCP\Files\NotFoundException
135135
*/
136136
protected function getStorageInfo() {
137+
\OC_Util::setupFS();
137138
$dirInfo = \OC\Files\Filesystem::getFileInfo('/', false);
138139

139140
return \OC_Helper::getStorageInfo('/', $dirInfo);

lib/base.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,6 @@ public static function handleRequest() {
10061006
OC_App::loadApps(['filesystem', 'logging']);
10071007
OC_App::loadApps();
10081008
}
1009-
OC_Util::setupFS();
10101009
OC::$server->getRouter()->match(\OC::$server->getRequest()->getRawPathInfo());
10111010
return;
10121011
} catch (Symfony\Component\Routing\Exception\ResourceNotFoundException $e) {

0 commit comments

Comments
 (0)