- 🇩🇪Germany donquixote
Some more ideas on this here, ✨ Allow modules to change the container cache key Active
- 🇩🇪Germany donquixote
A problem is that some low-level services are instantiated before any rebuild operation from e.g. drush cr would happen.
One such service is module_handler, but there are others. - 🇩🇪Germany Anybody Porta Westfalica
Here's a snippet for modules to put in the
.install
file for an update hook:/** * Rebuild the container cache. */ function MYMODULE_update_NNNNNNN() { \Drupal::service('kernel')->rebuildContainer(); }