⚡ Add cache after respond
This commit is contained in:
parent
644c0e6afb
commit
39ef6f9e0a
@ -63,6 +63,7 @@ func getPostInsight(c *fiber.Ctx) error {
|
||||
if err != nil {
|
||||
return fiber.NewError(fiber.StatusBadRequest, err.Error())
|
||||
}
|
||||
marshal.Set(contx, services.GetPostInsightCacheKey(item.ID), response)
|
||||
}
|
||||
|
||||
return c.JSON(fiber.Map{
|
||||
|
Loading…
x
Reference in New Issue
Block a user