Rename cache expiration config fields in controllers.

This commit is contained in:
mikestefanello 2021-12-11 13:41:57 -05:00
parent 57f3620aae
commit acf03dfd8f
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ func (t *Controller) cachePage(c echo.Context, p Page, html *bytes.Buffer) {
}
if p.Cache.MaxAge == 0 {
p.Cache.MaxAge = t.Container.Config.Cache.MaxAge.Page
p.Cache.MaxAge = t.Container.Config.Cache.Expiration.Page
}
key := c.Request().URL.String()