Issue Bug Under Review

#111402Status Report module executes all status providers twice per request

Georg Ringer 11/10/26, 20:52 updated 11/10/26, 20:53

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

  1. Add sleep(3); to the start of StatusService::getSystemStatus()
  2. 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

  1. Gerrit Code Review pushed patch set 1 for main to change 97524 status Accepted Under Review <span data-processor="relativetime" data-value="2026-11-10T20:53:37+00:00" > 11/10/26, 20:53 </span>