Skip to content

Commit 3bfd217

Browse files
committed
[BUGFIX] Limit the number of files to prefetch to prevent request field overflow
1 parent 38fcd10 commit 3bfd217

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Classes/Domain/PostProcessing/FileIndexPostProcessor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ protected function prefetchForeignInformationFiles(array $storages, array $sorte
123123
}
124124
}
125125
foreach ($foreignIdentifiers as $storageIndex => $identifierArray) {
126-
$this->getForeignDriver($storages[$storageIndex])->batchPrefetchFiles($identifierArray);
126+
foreach (array_chunk($identifierArray, 500) as $fragmentedArray) {
127+
$this->getForeignDriver($storages[$storageIndex])->batchPrefetchFiles($fragmentedArray);
128+
}
127129
}
128130
}
129131

0 commit comments

Comments
 (0)