mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
use the same cached propfind for free space for dav storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
cc74bff50c
commit
d334f21bd5
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue