Remove need for slice when setting cache tags. Require cache key for get/set ops.
This commit is contained in:
parent
bfbb9669aa
commit
3f053711ba
5 changed files with 20 additions and 11 deletions
|
|
@ -138,7 +138,7 @@ func (c *Controller) cachePage(ctx echo.Context, page Page, html *bytes.Buffer)
|
|||
Set().
|
||||
Group(middleware.CachedPageGroup).
|
||||
Key(key).
|
||||
Tags(page.Cache.Tags).
|
||||
Tags(page.Cache.Tags...).
|
||||
Expiration(page.Cache.Expiration).
|
||||
Data(cp).
|
||||
Save(ctx.Request().Context())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue