Issue Bug New Orphaned

#107387Cache flush of localized records in DH clears caches of all languages

Elias Häußler 09/04/25, 05:58 updated 09/04/25, 06:02

Description

I don’t know if this behavior is expected, but I’m a little bit worried about the reasons of this.

Given pages with uid=1 (default language), uid=2 (DE localization), uid=3 (DA localization) and uid=4 (CZ localization). When caches are cleared for the localized page with uid=2, caches for all other pages (uid=1,3,4) are cleared as well. This does not make sense to me – it should only be the case for the default language. It may make sense for languages which have a fallback language configured, but this constraint does obviously not apply here.

(Side note: \TYPO3\CMS\Core\DataHandling\DataHandler::prepareCacheFlush calculates the cache tags to clear, so it might be necessary to make changes there, in case the described behavior is considered inappropriate and needs to be adapted.)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Cache flush of localized records in DH clears caches of all languages Resolves: #107387 Releases: main