update appwide template cache when new template cache is generated
and useCache is off
This commit is contained in:
parent
7bfeb5f940
commit
f3f3f4406c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue