Adding caching of last 60 posts. (#4880)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
ca61b4bed9
Коммит
ffd6ccde2e
@@ -1295,7 +1295,7 @@ func getPosts(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
pchan := Srv.Store.Post().GetPosts(id, offset, limit)
|
||||
pchan := Srv.Store.Post().GetPosts(id, offset, limit, true)
|
||||
|
||||
if result := <-pchan; result.Err != nil {
|
||||
c.Err = result.Err
|
||||
|
||||
Ссылка в новой задаче
Block a user