diff --git a/core/lib/Drupal/Core/Extension/ModuleInstaller.php b/core/lib/Drupal/Core/Extension/ModuleInstaller.php
index 0dfe322..45f9f1f 100644
--- a/core/lib/Drupal/Core/Extension/ModuleInstaller.php
+++ b/core/lib/Drupal/Core/Extension/ModuleInstaller.php
@@ -199,6 +199,9 @@ public function install(array $module_list, $enable_dependencies = TRUE) {
         // Clear plugin manager caches.
         \Drupal::getContainer()->get('plugin.cache_clearer')->clearCachedDefinitions();
 
+        // Clear render cache.
+        Cache::invalidateTags(['rendered']);
+
         // Set the schema version to the number of the last update provided by
         // the module, or the minimum core schema version.
         $version = \Drupal::CORE_MINIMUM_SCHEMA_VERSION;
diff --git a/core/modules/block/block.install b/core/modules/block/block.install
index 106815c..13a5219 100644
--- a/core/modules/block/block.install
+++ b/core/modules/block/block.install
@@ -5,18 +5,6 @@
  * Contains install and update functions for Block.
  */
 
-use Drupal\Core\Cache\Cache;
-
-/**
- * Implements hook_install().
- */
-function block_install() {
-  // Because the Block module upon installation unconditionally overrides all
-  // HTML output by selecting a different page display variant, we must
-  // invalidate all cached HTML output.
-  Cache::invalidateTags(['rendered']);
-}
-
 /**
  * @addtogroup updates-8.0.0-beta
  * @{
