[Templating] fixed CacheLoader when more options are given

This commit is contained in:
Fabien Potencier 2010-02-02 14:24:22 +01:00
parent 8427af6389
commit 6ef1f07729

View File

@ -61,7 +61,7 @@ class CacheLoader extends Loader
{ {
$options = $this->mergeDefaultOptions($options); $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) if ($this->loader instanceof CompilableLoaderInterface)
{ {