aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-02-16 12:34:07 +0100
committerRobin Appelman <robin@icewind.nl>2024-03-04 13:57:31 +0100
commita9ee278ec6059d164ed2f45b0eb304e940ffd588 (patch)
tree5182ea3e384f7c9f91976570e5eb48fe18fcbef4 /lib/private/Server.php
parente7a7b4a40184dc3da2c83e858c820625f660e48e (diff)
downloadnextcloud-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.php5
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(