From 0462e3271a0488d71768f81b39d99e56c86fc4fc Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 28 Jul 2019 17:28:49 -0700 Subject: [PATCH] the cache directory should always be a temp dir --- lib/Debbugs/Text.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Debbugs/Text.pm b/lib/Debbugs/Text.pm index 53ecf04..1213ab7 100644 --- a/lib/Debbugs/Text.pm +++ b/lib/Debbugs/Text.pm @@ -181,8 +181,7 @@ sub fill_in_template{ ) { $tt_templates{$output_type}{$language} = Text::Xslate->new(# cache in template_cache or temp directory - cache_dir => $config{template_cache} // - File::Temp::tempdir(CLEANUP => 1), + cache_dir => File::Temp::tempdir(CLEANUP => 1), # default to the language, but fallback to en_US path => [$config{template_dir}.'/'.$language.'/', $config{template_dir}.'/en_US/', -- 2.39.2