]> git.agnieray.net Git - galette.git/commitdiff
Use specific directory for template cache
authorJohan Cwiklinski <johan@x-tnd.be>
Sat, 17 Feb 2024 09:57:49 +0000 (10:57 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Sat, 17 Feb 2024 09:58:51 +0000 (10:58 +0100)
galette/includes/dependencies.php

index 8a751a9c00e9fa16e7532549be5b55b00225e501..7275eb494df41e70d25fa74bd4c52c4eabf544e9 100644 (file)
@@ -71,7 +71,7 @@ $container->set('Slim\Views\Twig', function (ContainerInterface $c) {
     $view = Twig::create(
         $templates,
         [
-            'cache' => rtrim(GALETTE_CACHE_DIR, DIRECTORY_SEPARATOR),
+            'cache' => rtrim(GALETTE_CACHE_DIR, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'templates',
             'debug' => \Galette\Core\Galette::isDebugEnabled(),
             'strict_variables' => \Galette\Core\Galette::isDebugEnabled()
         ]