#111402Status Report module executes all status providers twice per request
Description
Opening System > Reports > Status Report runs every registered status provider twice. StatusReportController::handleRequest() first calls StatusService::getSystemStatus() to build the view and then StatusService::collectAndStoreSystemStatus(), which internally calls getSystemStatus() again just to store the highest severity in the registry.
Since some providers are expensive (environment checks, extension status), the module takes about twice as long to render as necessary.
How to reproduce
- Add
sleep(3);to the start ofStatusService::getSystemStatus() - Open System > Reports > Status Report
Expected: the page takes about 3 seconds longer than before.
Actual: the page takes about 6 seconds longer, as the method is called twice.
Solution
Add StatusService::storeHighestSeverity() which stores the highest severity of an already collected status collection. The controller reuses the collection it has already loaded; collectAndStoreSystemStatus() (used by the scheduler task) delegates to the new method and behaves as before.
Related: #100976
Reviews 1
History 01
-
Gerrit Code Review pushed patch set 1 for main to change 97524 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2026-11-10T20:53:37+00:00" > 11/10/26, 20:53 </span>