backportbot[bot] 2 weeks ago committed by GitHub
commit 786cd43bb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -629,6 +629,9 @@ class Cache implements ICache {
$query->delete('filecache')
->whereParentInParameter('parentIds');
// Sorting before chunking allows the db to find the entries close to each
// other in the index
sort($parentIds, SORT_NUMERIC);
foreach (array_chunk($parentIds, 1000) as $parentIdChunk) {
$query->setParameter('parentIds', $parentIdChunk, IQueryBuilder::PARAM_INT_ARRAY);
$query->execute();

Loading…
Cancel
Save