diff --git a/core/includes/common.inc b/core/includes/common.inc index b776937..cf4bbb6 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -1298,7 +1298,7 @@ function drupal_flush_all_caches() { // Invalidate the container. \Drupal::service('kernel')->invalidateContainer(); - // Wipe the PHP Storage cache. + // Wipe the Twig PHP Storage cache. PhpStorageFactory::get('twig')->deleteAll(); // Rebuild module and theme data. diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index 8a6f518..0f103e6 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -127,7 +127,7 @@ class DrupalKernel implements DrupalKernelInterface, TerminableInterface { protected $allowDumping; /** - * Whether the container needs to be rebuild the next time it is initialized. + * Whether the container needs to be rebuilt the next time it is initialized. * * @var bool */ @@ -702,10 +702,10 @@ public function updateModules(array $module_list, array $module_filenames = arra } // If we haven't yet booted, we don't need to do anything: the new module - // list will take effect when boot() is called. However we set the - // containerNeedsRebuild flag so that a potentially cached container is not - // used. If we have already booted, then rebuild the container in order to - // refresh the serviceProvider list and container. + // list will take effect when boot() is called. However we set a + // flag that the container needs a rebuild, so that a potentially cached + // container is not used. If we have already booted, then rebuild the + // container in order to refresh the serviceProvider list and container. $this->containerNeedsRebuild = TRUE; if ($this->booted) { $this->initializeContainer(); @@ -788,7 +788,7 @@ protected function initializeContainer() { $container = $this->compileContainer(); } - // The container was rebuild successfully. + // The container was rebuilt successfully. $this->containerNeedsRebuild = FALSE; $this->attachSynthetic($container); @@ -1032,7 +1032,7 @@ public function invalidateContainer() { return; } - // Also wipe the PHP Storage caches, so that the container is rebuild + // Also wipe the PHP Storage caches, so that the container is rebuilt // for the next request. $this->storage()->deleteAll(); }