From ba625058e3ebe7b52807256b9ccf58c5e0e7e95a Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 8 Oct 2011 17:34:40 +1100 Subject: [PATCH] clear Twig cache upon rebuild (issue #29) --- mod.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mod.php b/mod.php index 4dee0a23..31eb3be0 100644 --- a/mod.php +++ b/mod.php @@ -1610,6 +1610,12 @@ $body = '

Rebuilding…

'; + $body .= 'Clearing template cache…
'; + $twig = new Twig_Environment($loader, Array( + 'cache' => "{$config['dir']['template']}/cache" + )); + $twig->clearCacheFiles(); + $body .= 'Regenerating theme files…
'; rebuildThemes('all');