update appwide template cache when new template cache is generated

and useCache is off
This commit is contained in:
Lilian Jónsdóttir 2024-01-22 21:54:19 -08:00
parent 7bfeb5f940
commit f3f3f4406c

View file

@ -90,6 +90,7 @@ func RenderTemplate(w http.ResponseWriter, t string, data *models.TemplateData)
if err != nil {
app.Logger.Fatal("Error generating template cache, bailing out!")
}
app.TemplateCache = cache
}
// Get templates from cache