Change record status: 
Project: 
Introduced in branch: 
8.3.x
Introduced in version: 
8.3.0
Description: 
Before
The container parameter twig_extension_hash was 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 State under 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_hash is now a long hash value and is compared to the value in State to determine when the directory prefix needs to be changed to ensure outdated cache files are not used.
Impacts: 
Module developers