diff options
author | Robin Appelman <robin@icewind.nl> | 2017-06-14 18:11:55 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-08-26 10:18:19 +0200 |
commit | 37e8b698f71481fe420a8eb248a5f604cd732cbd (patch) | |
tree | dedebf15d9c9d7aaa1eee8302369c37a6d50a052 /apps/dav/lib/Server.php | |
parent | ca490bafb950b9d16ab4543ae810c3a67cb84d5b (diff) | |
download | nextcloud-server-37e8b698f71481fe420a8eb248a5f604cd732cbd.tar.gz nextcloud-server-37e8b698f71481fe420a8eb248a5f604cd732cbd.zip |
cache nodes from search results
Signed-off-by: Robin Appelman <robin@icewind.nl>
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 994ac04033a..407e7e28e4f 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())); |