Prevent caching pages if user is authenticated

This commit is contained in:
Jens 2022-06-20 21:47:07 +02:00
parent 8d2a6d9b7a
commit 9f1ed2e5f5

View File

@ -108,7 +108,7 @@ func (c *Controller) RenderPage(ctx echo.Context, page Page) error {
// cachePage caches the HTML for a given Page if the Page has caching enabled
func (c *Controller) cachePage(ctx echo.Context, page Page, html *bytes.Buffer) {
if !page.Cache.Enabled {
if !page.Cache.Enabled || page.IsAuth {
return
}