clear Twig cache upon rebuild (issue #29)
This commit is contained in:
parent
a3ec79e969
commit
ba625058e3
6
mod.php
6
mod.php
@ -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');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user