Added cache options and config.
This commit is contained in:
parent
bccb538d19
commit
e499257686
3 changed files with 10 additions and 1 deletions
|
|
@ -34,6 +34,11 @@ type Page struct {
|
|||
}
|
||||
Pager pager.Pager
|
||||
CSRF string
|
||||
Cache struct {
|
||||
Enabled bool
|
||||
MaxAge int
|
||||
Tags []string
|
||||
}
|
||||
}
|
||||
|
||||
func NewPage(c echo.Context) Page {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue