Skip to content

Commit 344d7ed

Browse files
committed
MC-42158: [Improvement request] Module List Loading Taking Extremely Long
1 parent 419bbbf commit 344d7ed

File tree

1 file changed

+4
-1
lines changed
  • lib/internal/Magento/Framework/Module/ModuleList

1 file changed

+4
-1
lines changed

lib/internal/Magento/Framework/Module/ModuleList/Loader.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,11 @@ private function expandSequence(
222222
$allSequences[] = $relatedSequence;
223223
}
224224
$allSequences[] = $sequence;
225+
225226
// Caching the full sequence list
226-
$sequenceCache[$name] = array_unique(array_merge(...$allSequences));
227+
if (!empty($allSequences)) {
228+
$sequenceCache[$name] = array_unique(array_merge(...$allSequences));
229+
}
227230
}
228231

229232
return $sequenceCache[$name] ?? [];

0 commit comments

Comments
 (0)