]> git.donarmstrong.com Git - debbugs.git/commitdiff
the cache directory should always be a temp dir
authorDon Armstrong <don@donarmstrong.com>
Mon, 29 Jul 2019 00:28:49 +0000 (17:28 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sun, 11 Aug 2019 03:20:56 +0000 (20:20 -0700)
lib/Debbugs/Text.pm

index 53ecf04c47fb60019ec09445355e07700eec46cc..1213ab71b2dd76bf0ef0c415184b809ddc2410db 100644 (file)
@@ -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/',