mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #40473 from nextcloud/backport/39860/stable27
[stable27] don't preload metadata for the sub-childen
This commit is contained in:
commit
2fad5233a2
1 changed files with 10 additions and 6 deletions
|
|
@ -465,13 +465,17 @@ class FilesPlugin extends ServerPlugin {
|
|||
|
||||
$requestProperties = $propFind->getRequestedProperties();
|
||||
|
||||
if ($this->config->getSystemValueBool('enable_file_metadata', true)) {
|
||||
$requestedMetaData = [];
|
||||
foreach ($requestProperties as $requestProperty) {
|
||||
if (isset(self::ALL_METADATA_PROPS[$requestProperty])) {
|
||||
$requestedMetaData[] = self::ALL_METADATA_PROPS[$requestProperty];
|
||||
}
|
||||
$requestedMetaData = [];
|
||||
foreach ($requestProperties as $requestProperty) {
|
||||
if (isset(self::ALL_METADATA_PROPS[$requestProperty])) {
|
||||
$requestedMetaData[] = self::ALL_METADATA_PROPS[$requestProperty];
|
||||
}
|
||||
}
|
||||
if (
|
||||
$this->config->getSystemValueBool('enable_file_metadata', true) &&
|
||||
$propFind->getDepth() === 1 &&
|
||||
$requestedMetaData
|
||||
) {
|
||||
$children = $node->getChildren();
|
||||
// Preloading of the metadata
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue