mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-06 01:25:00 +02:00
Enabled cache in panel
This commit is contained in:
parent
25bc76d54e
commit
478fb55073
3 changed files with 11 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue