Review 12.4 Merged

79220[TASK] Use dedicated cache for schema information

Stefan Bürk CR +2 V +2 Normal +76 −161 updated 06/10/23, 15:51

Commit message

Using the core cache for schema information comes with
various drawbacks:

1. There is no way to flush single core cache entries,
   thus the complete core cache needs to be flushed when
   changing the database schema.
2. The PHP Frontend provides no benefit, when the to be cached
   information has to be serialized anyway.

Therefore, a new cache is introduced that can be flushed
individually after schema updates.

Flushing the cache is now also moved altogether to SchemaMigrator,
in order to avoid flushing the cache multiple times for multiple
connections. For flushing the individual cache, the internal
Bootstrap::createCache factory is used, which ensures a cache
backend, which is not set to null backend, which happens
with late boot methodology in install tool and replaces the
previously used ClearCacheService, which is only meant to be
used to flush all caches and boots the system for that.

With doing so, the previously introduced argument to not
boot the system can be removed again.

As drive by change the SysLogChannel update is renovated
a bit to not use deprecated Doctrine DBAL API.

Review

  • Code review CR +2

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

  • Verified V +2

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

Issues 1

Files 8