Review main Abandoned

79071[WIP][BUGFIX] Only flush specific cache related to SchemaInformation

Stefan Bürk CR 0 V 0 Easy +39 −7 updated 06/01/23, 11:04

Commit message

With #99062 cached schema information has been implemented
to avoid performance issues in usual working places. These
informations needs to be refreshed if changes to the known
database structure are done, for example when executing db
schema updates with the `Database Analazyer` install util.

This introduced reloading `ext_localconf.php` and lead to
registering hooks, if not a imdepotent identifier has been
used. #100840 addressed this and releaxed it by adding a
flag to omit the reloading of `ext_localconf.php` files.

This still leads to flushing all caches, which may lead to
breaking tests in some circumstances because tables of some
database based cache configurations have not been created.

This change now moves the implementation to a new method
in the `ClearCacheService` with the ability to select which
cache(s) should be cleared, fallbacking to clear all caches
if none specified. The old method `clearAll()` dispatches
to the new method `clearCaches()` as this is used for the
`flush cache` feature in the install tool.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 3