Adding caching of last 60 posts. (#4880)

Этот коммит содержится в:
Christopher Speller
2016-12-22 18:14:54 -05:00
коммит произвёл Corey Hulen
родитель ca61b4bed9
Коммит ffd6ccde2e
4 изменённых файлов: 62 добавлений и 4 удалений

Просмотреть файл

@@ -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