fix(filecache): Move from array_merge to avoid memory exhaustion

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2024-03-04 18:13:45 +01:00 committed by GitHub
parent a58ed05f1d
commit 575159b819
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 2 deletions

View File

@ -585,8 +585,13 @@ class Cache implements ICache {
return $cacheEntry->getPath();
}, $children);
$deletedIds = array_merge($deletedIds, $childIds);
$deletedPaths = array_merge($deletedPaths, $childPaths);
foreach ($childIds as $childId) {
$deletedIds[] = $childId;
}
foreach ($childPaths as $childPath) {
$deletedPaths[] = $childPath;
}
$query = $this->getQueryBuilder();
$query->delete('filecache_extended')