Added gocache as a cache wrapper.
This commit is contained in:
parent
70d9d0f8fa
commit
3a45695083
9 changed files with 212 additions and 29 deletions
|
|
@ -14,6 +14,8 @@ func (a *About) Get(c echo.Context) error {
|
|||
p.Name = "about"
|
||||
p.Title = "About"
|
||||
p.Data = "This is the about page"
|
||||
p.Cache.Enabled = true
|
||||
p.Cache.Tags = []string{"page_about", "page:list"}
|
||||
|
||||
return a.RenderPage(c, p)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue