diff --git a/core/lib/Drupal/Core/Template/TwigEnvironment.php b/core/lib/Drupal/Core/Template/TwigEnvironment.php index 7587e6a..8d0e3ed 100644 --- a/core/lib/Drupal/Core/Template/TwigEnvironment.php +++ b/core/lib/Drupal/Core/Template/TwigEnvironment.php @@ -123,8 +123,8 @@ 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 and - // deployment identifier, much like for the container itself. + // extensions, so we use the twig extension hash which varies by extensions + // and their mtime. if (!$this->cache) { return FALSE;