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:
parent
0f50e874d4
commit
e4d78e054b
@ -122,7 +122,7 @@ if(php_sapi_name() == 'cli' || $_SERVER["REQUEST_URI"] == '/metrics') {
|
|||||||
|
|
||||||
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
||||||
$twig = new \Twig\Environment($loader, [
|
$twig = new \Twig\Environment($loader, [
|
||||||
'cache' => 'twig-cache',
|
'cache' => 'twig_cache',
|
||||||
]);
|
]);
|
||||||
echo $twig->render('metrics.twig', ['config' => $config]);
|
echo $twig->render('metrics.twig', ['config' => $config]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user