Skip to content

Commit

Permalink
Enable template cache?
Browse files Browse the repository at this point in the history
Unclear why this was disabled
  • Loading branch information
turt2live committed Jul 15, 2023
1 parent a3ecef7 commit c50a9dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templating/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c50a9dc

Please sign in to comment.