From c50a9dce7b88f321d4eb7e759600fd0ae9d0c51d Mon Sep 17 00:00:00 2001 From: Travis Ralston <travpc@gmail.com> Date: Fri, 14 Jul 2023 22:05:53 -0600 Subject: [PATCH] Enable template cache? Unclear why this was disabled --- templating/templates.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templating/templates.go b/templating/templates.go index 508f8096..ba618cb0 100644 --- a/templating/templates.go +++ b/templating/templates.go @@ -29,9 +29,9 @@ func GetInstance() *templates { func GetTemplate(name string) (*template.Template, error) { i := GetInstance() - //if v, ok := i.cached[name]; ok { - // return v, nil - //} + if v, ok := i.cached[name]; ok { + return v, nil + } fname := fmt.Sprintf("%s.html", name) tmplPath := path.Join(config.Runtime.TemplatesPath, fname) -- GitLab