mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-07 15:11:32 +01:00
clear Twig cache upon rebuild (issue #29)
This commit is contained in:
parent
8035e4a021
commit
c552eb1ded
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…
x
Reference in New Issue
Block a user