Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-25 17:24:38 +0300
committerRobin Appelman <robin@icewind.nl>2022-04-04 17:48:31 +0300
commitf9a5fb99fd4c586ac756afe53aa5c241c20657f2 (patch)
tree4a17f38bc1e37cc3128fee8a61cfe6330bb84495 /lib/private/Files/Storage
parent5e2dd29aafeb40ba310e12766c8a5b4da564c869 (diff)
use the same cached propfind for free space for dav storagefed-performance
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Storage')
-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;
}