summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod.php b/mod.php
index 4dee0a23..31eb3be0 100644
--- a/mod.php
+++ b/mod.php
@@ -1610,6 +1610,12 @@
$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/>';
rebuildThemes('all');