core/lib/Drupal/Core/Extension/ModuleInstaller.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/lib/Drupal/Core/Extension/ModuleInstaller.php b/core/lib/Drupal/Core/Extension/ModuleInstaller.php index 65a132d..b4937c0 100644 --- a/core/lib/Drupal/Core/Extension/ModuleInstaller.php +++ b/core/lib/Drupal/Core/Extension/ModuleInstaller.php @@ -288,6 +288,8 @@ public function install(array $module_list, $enable_dependencies = TRUE) { // Allow the module to perform install tasks. $this->moduleHandler->invoke($module, 'install'); + // Refresh any static caches in the Cache class (e.g. to ensure it has + // the correct set of cache contexts). Cache::refresh(); // Record the fact that it was installed.