From: Don Armstrong Date: Mon, 29 Jul 2019 00:28:49 +0000 (-0700) Subject: the cache directory should always be a temp dir X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=0462e3271a0488d71768f81b39d99e56c86fc4fc the cache directory should always be a temp dir --- 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/',