diff options
author | Robin Appelman <robin@icewind.nl> | 2024-02-16 12:34:07 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-03-04 13:57:31 +0100 |
commit | a9ee278ec6059d164ed2f45b0eb304e940ffd588 (patch) | |
tree | 5182ea3e384f7c9f91976570e5eb48fe18fcbef4 /lib/private/Server.php | |
parent | e7a7b4a40184dc3da2c83e858c820625f660e48e (diff) | |
download | nextcloud-server-a9ee278ec6059d164ed2f45b0eb304e940ffd588.tar.gz nextcloud-server-a9ee278ec6059d164ed2f45b0eb304e940ffd588.zip |
perf: cache path by id to speedup getting nodes by id
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 1aedd7d06ac..c956da4fdd8 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -448,14 +448,17 @@ class Server extends ServerContainer implements IServerContainer { $this->registerService('RootFolder', function (ContainerInterface $c) { $manager = \OC\Files\Filesystem::getMountManager(); $view = new View(); + /** @var IUserSession $userSession */ + $userSession = $c->get(IUserSession::class); $root = new Root( $manager, $view, - null, + $userSession->getUser(), $c->get(IUserMountCache::class), $this->get(LoggerInterface::class), $this->get(IUserManager::class), $this->get(IEventDispatcher::class), + $this->get(ICacheFactory::class), ); $previewConnector = new \OC\Preview\WatcherConnector( |