diff --git a/core/lib/Drupal/Core/Template/TwigEnvironment.php b/core/lib/Drupal/Core/Template/TwigEnvironment.php index b86a40a..9758cc9 100644 --- a/core/lib/Drupal/Core/Template/TwigEnvironment.php +++ b/core/lib/Drupal/Core/Template/TwigEnvironment.php @@ -124,7 +124,7 @@ public function updateCompiledTemplate($cache_filename, $name) { public function getCacheFilename($name) { // We override the cache filename in order to avoid issues with not using // shared filesystems. The Twig templates for example rely on available Twig - // extensions, so we need to take into account the \Drupal::VERSION + // extensions, so we need to take into account the \Drupal::VERSION and // deployment identifier, much like for the container itself. if (!$this->cache) { @@ -135,7 +135,7 @@ public function getCacheFilename($name) { // Just check the list of loaded extensions once. if (!isset($this->templateCacheFilenamePrefix)) { - $this->templateCacheFilenamePrefix = hash('crc32b', $this->twigExtensionHash . \Drupal::VERSION . Settings::get('deployment_identifier', \Drupal::VERSION)); + $this->templateCacheFilenamePrefix = hash('crc32b', $this->twigExtensionHash . \Drupal::VERSION . Settings::get('deployment_identifier')); } // The first part is what is invalidated.