mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-11 12:56:56 +00:00
a7c8b08270
Before this change the name for the template was generated randomly based on uniqid(mt_rand()). It generated new file whenever the template was loaded as string using the `template_from_string` even the template was the same. The generated file wasn't used anymore. Now the cache file is generated by the content of template so using the `template_from_string` is faster and doesn't pollute the cache folder with unneeded files.