From 6aa6ab3e02c1ab50992c824b85ecc1a45988379c Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 22 Apr 2020 15:21:15 +0200 Subject: Add lazy events for the Node API Right now if you want to get events via the Node API you have to have a real instance of the Root. Which in turns sets up the whole FS. We should make sure this is done lazy. Else enabling the preview generator for example makes you setup the whole FS on each and every authenticated call. Signed-off-by: Roeland Jago Douma --- lib/base.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/base.php') diff --git a/lib/base.php b/lib/base.php index b1f9569926f..3ac6d978e4e 100644 --- a/lib/base.php +++ b/lib/base.php @@ -597,6 +597,7 @@ class OC { // setup the basic server self::$server = new \OC\Server(\OC::$WEBROOT, self::$config); + self::$server->boot(); \OC::$server->getEventLogger()->log('autoloader', 'Autoloader', $loaderStart, $loaderEnd); \OC::$server->getEventLogger()->start('boot', 'Initialize'); -- cgit v1.2.3