diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-09-06 10:16:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-06 10:16:01 +0200 |
commit | 1724fed8c530b0620aa97266b70d236fd8f38102 (patch) | |
tree | 1dd0e61d68dacc6146aeccfb13c741457f6019c1 /apps/dav/lib/Server.php | |
parent | 9d930210eec9e30bbc1fcd3e154d65eb0fc7ae28 (diff) | |
parent | 42915b1e8bea013153834ff5ec4aa57b7b2908a9 (diff) | |
download | nextcloud-server-1724fed8c530b0620aa97266b70d236fd8f38102.tar.gz nextcloud-server-1724fed8c530b0620aa97266b70d236fd8f38102.zip |
Merge pull request #5415 from nextcloud/search-cache-node
cache nodes from search results
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r-- | apps/dav/lib/Server.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index 896af09f1c0..b93f3e6390a 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -35,6 +35,7 @@ use OCA\DAV\Comments\CommentsPlugin; use OCA\DAV\Connector\Sabre\Auth; use OCA\DAV\Connector\Sabre\BearerAuth; use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin; +use OCA\DAV\Connector\Sabre\CachingTree; use OCA\DAV\Connector\Sabre\CommentPropertiesPlugin; use OCA\DAV\Connector\Sabre\CopyEtagHeaderPlugin; use OCA\DAV\Connector\Sabre\DavAclPlugin; @@ -75,7 +76,7 @@ class Server { $dispatcher = \OC::$server->getEventDispatcher(); $root = new RootCollection(); - $this->server = new \OCA\DAV\Connector\Sabre\Server($root); + $this->server = new \OCA\DAV\Connector\Sabre\Server(new CachingTree($root)); // Add maintenance plugin $this->server->addPlugin(new \OCA\DAV\Connector\Sabre\MaintenancePlugin(\OC::$server->getConfig())); |