clear Twig cache upon rebuild (issue #29)

This commit is contained in:
Savetheinternet 2011-10-08 17:34:40 +11:00
parent a3ec79e969
commit ba625058e3

View File

@ -1610,6 +1610,12 @@
$body = '<div class="ban"><h2>Rebuilding…</h2><p>'; $body = '<div class="ban"><h2>Rebuilding…</h2><p>';
$body .= 'Clearing template cache…<br/>';
$twig = new Twig_Environment($loader, Array(
'cache' => "{$config['dir']['template']}/cache"
));
$twig->clearCacheFiles();
$body .= 'Regenerating theme files…<br/>'; $body .= 'Regenerating theme files…<br/>';
rebuildThemes('all'); rebuildThemes('all');