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');