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/?a=commitdiff_plain;h=cb78e65942c6e26ed0c76b8f74b32edfc2e14760;p=debbugs.git the cache directory should always be a temp dir --- diff --git a/lib/Debbugs/Text.pm b/lib/Debbugs/Text.pm index 53ecf04c..1213ab71 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/',