Selaa lähdekoodia

[Templating] fixed CacheLoader when more options are given

Fabien Potencier 15 vuotta sitten
vanhempi
commit
6ef1f07729
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/Symfony/Components/Templating/Loader/CacheLoader.php

+ 1 - 1
src/Symfony/Components/Templating/Loader/CacheLoader.php

@@ -61,7 +61,7 @@ class CacheLoader extends Loader
   {
     $options = $this->mergeDefaultOptions($options);
 
-    $path = $this->dir.DIRECTORY_SEPARATOR.md5($template.$options['renderer']).'.tpl';
+    $path = $this->dir.DIRECTORY_SEPARATOR.md5($template.serialize($options)).'.tpl';
 
     if ($this->loader instanceof CompilableLoaderInterface)
     {