Merge pull request #539 from mailpoet/twig_caching
Fix Twig cache regeneration
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user