Browse Source

Merge pull request #41272 from nextcloud/fixOccScans

fix: reduce memory consumption of scans
tags/v29.0.0beta1
Git'Fellow 7 months ago
parent
commit
394cd75322
No account linked to committer's email address
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      lib/private/Files/Cache/Cache.php

+ 6
- 3
lib/private/Files/Cache/Cache.php View File

@@ -606,9 +606,12 @@ class Cache implements ICache {
}

/** @var ICacheEntry[] $childFolders */
$childFolders = array_filter($children, function ($child) {
return $child->getMimeType() == FileInfo::MIMETYPE_FOLDER;
});
$childFolders = [];
foreach ($children as $child) {
if ($child->getMimeType() == FileInfo::MIMETYPE_FOLDER) {
$childFolders[] = $child;
}
}
foreach ($childFolders as $folder) {
$parentIds[] = $folder->getId();
$queue[] = $folder->getId();

Loading…
Cancel
Save