From e4d78e054b8d5def5d983a353f2396d6d4aa9202 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Thu, 13 Jun 2024 14:32:50 +0200 Subject: [PATCH] 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. --- script.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.php b/script.php index 71e76ce..d92082c 100644 --- a/script.php +++ b/script.php @@ -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]); }