Config Event Subscriber should only save report once per request

Created on 6 July 2023, over 1 year ago
Updated 28 August 2023, about 1 year ago

Problem/Motivation

The Config event subscriber saves a new report every time a config is saved.

This can cause a major slowdown if many configs are saved on one request, like when a config:import happens.

Steps to reproduce

  1. Enable "Save on Config" in Site Settings.
  2. Run an import or install a module.
  3. Witness slowness.

Proposed resolution

Use the Kernel start and shutdown events to create a global that can track all config changes, then save one Site entity on shutdown.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Jon Pugh Newburgh, NY

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024