Enabled cache in panel

This commit is contained in:
Pinga 2024-01-23 16:24:02 +02:00
parent 25bc76d54e
commit 478fb55073
3 changed files with 11 additions and 1 deletions

View file

@ -80,7 +80,7 @@ $container->set('flash', function() {
$container->set('view', function ($container) {
$view = Twig::create(__DIR__ . '/../resources/views', [
'cache' => false,
'cache' => __DIR__ . '/../cache',
]);
$view->getEnvironment()->addGlobal('auth', [
'isLogin' => $container->get('auth')->isLogin(),