By pwolanin on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.3.x
Introduced in version:
8.3.0
Issue links:
Description:
- Before
- The container parameter
twig_extension_hashwas directly used as the name prefix for Twig cache directories by\Drupal\Core\Template\TwigEnvironment - After
- The actual prefix in current use is stored in
Stateunder the key'twig_extension_hash_prefix'. There should be no need to directly check this value - it's used by\Drupal\Core\Template\TwigEnvironment - The container parameter
twig_extension_hashis now a long hash value and is compared to the value inStateto determine when the directory prefix needs to be changed to ensure outdated cache files are not used.
Impacts:
Module developers