- Issue created by @kingdutch
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 12:24pm 9 November 2023 - 🇨🇭Switzerland berdir Switzerland
I suspect this has a slight problem depending on the installation order of redis, cache bins that it currently doesn't know about yet (if they are provided by modules installed *after* redis is being installed) wouldn't be cleared.
- 🇳🇱Netherlands kingdutch
It took me some time to come up with a solution to the problem you described :D
I think the proposed solution now also properly handles modules that are installed later. Figuring out a way to find which cache bins are defined by the installed module wasn't trivial but I found that the ModuleInstaller has code for this and if it's good enough for Drupal core's module installer, I figured it was good enough for us.
- Merge request !35Issue #3400450 by Kingdutch: Clear Redis cache bins on Drupal installation → (Open) created by kingdutch
- 🇳🇱Netherlands kingdutch
I'm unsure why this change seems to break the container magic that's used in the PHPUnit tests :/