Skip to content
Snippets Groups Projects
Commit f0936fe1 authored by Helmut Hummel's avatar Helmut Hummel Committed by Stefan Bürk
Browse files

[TASK] Use dedicated cache for schema information

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.

Releases: main, 12.4
Resolves: #100925
Change-Id: I0193501fec5d41edfcb65f07faefe30985629818
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79148


Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 97c6e1ae
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment