diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php index 59fc24f..6c6212d 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php @@ -31,7 +31,7 @@ public function process(ContainerBuilder $container) { $twig_extension_hash .= $class_name . filemtime($reflection->getFileName()); } - $container->setParameter('twig_extension_hash', hash('sha256', $twig_extension_hash)); + $container->setParameter('twig_extension_hash', hash('crc32b', $twig_extension_hash)); } } diff --git a/core/lib/Drupal/Core/Template/TwigEnvironment.php b/core/lib/Drupal/Core/Template/TwigEnvironment.php index 6c3a18c..6c5aaa3 100644 --- a/core/lib/Drupal/Core/Template/TwigEnvironment.php +++ b/core/lib/Drupal/Core/Template/TwigEnvironment.php @@ -118,6 +118,7 @@ public function getCacheFilename($name) { // shared filesystems. The Twig templates for example rely on available Twig // extensions, so we use the twig extension hash which varies by extensions // and their mtime. + // @see \Drupal\Core\DependencyInjection\Compiler\TwigExtensionPass if (!$this->cache) { return FALSE;