mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
fixed Twig cache sharing when used with different versions of PHP
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
* 1.25.0 (2016-XX-XX)
|
||||
|
||||
* fixed Twig cache sharing when used with different versions of PHP
|
||||
* removed embed parent workaround for simple use cases
|
||||
* deprecated the ability to store non Node instances in Node::$nodes
|
||||
* deprecated Twig_Environment::getLexer(), Twig_Environment::getParser(), Twig_Environment::getCompiler()
|
||||
|
||||
@@ -312,6 +312,7 @@ class Twig_Environment
|
||||
$key = $this->getLoader()->getCacheKey($name);
|
||||
$key .= json_encode(array_keys($this->extensions));
|
||||
$key .= function_exists('twig_template_get_attributes');
|
||||
$key .= ':'.PHP_MAJOR_VERSION.':'.PHP_MINOR_VERSION;
|
||||
|
||||
return $this->templateClassPrefix.hash('sha256', $key).(null === $index ? '' : '_'.$index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user