aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-25 15:24:38 +0100
committerRobin Appelman <robin@icewind.nl>2022-04-04 16:48:31 +0200
commitf9a5fb99fd4c586ac756afe53aa5c241c20657f2 (patch)
tree4a17f38bc1e37cc3128fee8a61cfe6330bb84495 /lib
parent5e2dd29aafeb40ba310e12766c8a5b4da564c869 (diff)
downloadnextcloud-server-f9a5fb99fd4c586ac756afe53aa5c241c20657f2.tar.gz
nextcloud-server-f9a5fb99fd4c586ac756afe53aa5c241c20657f2.zip
use the same cached propfind for free space for dav storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/DAV.php4
1 files changed, 2 insertions, 2 deletions
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;
}