Updated Twig cache directory name

The cache directory name for the Twig environment has been updated. The previous hyphen-separated name 'twig-cache' has been replaced with an underscore-separated one, 'twig_cache'. This change ensures consistency in naming conventions across the project.
This commit is contained in:
Jeroen De Meerleer 2024-06-13 14:32:50 +02:00
parent 0f50e874d4
commit e4d78e054b
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -122,7 +122,7 @@ if(php_sapi_name() == 'cli' || $_SERVER["REQUEST_URI"] == '/metrics') {
$loader = new \Twig\Loader\FilesystemLoader('templates');
$twig = new \Twig\Environment($loader, [
'cache' => 'twig-cache',
'cache' => 'twig_cache',
]);
echo $twig->render('metrics.twig', ['config' => $config]);
}