]> ruin.nu Git - ndwebbie.git/blobdiff - include.pl
cache templates in memory
[ndwebbie.git] / include.pl
index 0bf16a8c3510283014b5f2f0346f9087f7e77f3d..76c4541db78caf171f5e722dc222aaddadc20a6f 100644 (file)
@@ -84,7 +84,7 @@ ORDER BY r.tick+c.wave,x,y,z});
                        , AJAX => $ND::AJAX, JoinName => $target->{joinable} ? 'N' : 'J'
                        , Joinable => $target->{joinable} ? 'FALSE' : 'TRUE'};
        }
-       my $template = HTML::Template->new(filename => "templates/targetlist.tmpl");
+       my $template = HTML::Template->new(filename => "templates/targetlist.tmpl", cache => 1);
        $template->param(Targets => \@targets);
        return $template->output;
 }