mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-12 01:50:48 +01:00
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