From f9a5fb99fd4c586ac756afe53aa5c241c20657f2 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 25 Mar 2022 15:24:38 +0100 Subject: use the same cached propfind for free space for dav storage Signed-off-by: Robin Appelman --- lib/private/Files/Storage/DAV.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/Files/Storage') diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index ee874d97b55..b7d1c4bbc10 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -275,6 +275,7 @@ class DAV extends Common { '{http://open-collaboration-services.org/ns}share-permissions', '{DAV:}resourcetype', '{DAV:}getetag', + '{DAV:}quota-available-bytes', ] ); $this->statCache->set($path, $response); @@ -428,8 +429,7 @@ class DAV extends Common { $this->init(); $path = $this->cleanPath($path); try { - // TODO: cacheable ? - $response = $this->client->propfind($this->encodePath($path), ['{DAV:}quota-available-bytes']); + $response = $this->propfind($path); if ($response === false) { return FileInfo::SPACE_UNKNOWN; } -- cgit v1.2.3