From f3f3f4406c18a573fe21bdda5948b223f8b14ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Mon, 22 Jan 2024 21:54:19 -0800 Subject: [PATCH] update appwide template cache when new template cache is generated and useCache is off --- internal/render/render.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/render/render.go b/internal/render/render.go index d50b5b0..ea2e0f4 100644 --- a/internal/render/render.go +++ b/internal/render/render.go @@ -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