Merge pull request #539 from mailpoet/twig_caching

Fix Twig cache regeneration
This commit is contained in:
mrcasual
2016-07-05 09:57:02 -04:00
committed by GitHub

View File

@@ -14,7 +14,8 @@ class Renderer {
$file_system, $file_system,
array( array(
'cache' => $this->detectCache(), 'cache' => $this->detectCache(),
'debug' => WP_DEBUG 'debug' => WP_DEBUG,
'auto_reload' => true
) )
); );
} }
@@ -26,6 +27,7 @@ class Renderer {
$this->setupHandlebars(); $this->setupHandlebars();
$this->setupGlobalVariables(); $this->setupGlobalVariables();
$this->setupSyntax(); $this->setupSyntax();
return $this->renderer; return $this->renderer;
} }