summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-12-22 18:14:54 -0500
committerCorey Hulen <corey@hulen.com>2016-12-22 15:14:54 -0800
commitffd6ccde2ed4b1d374d0835c5638a189df60a679 (patch)
tree5b67ceff84678b04cdae08cef554086c4145324e /api/post.go
parentca61b4bed94ea98530bf4f1b2f7585fe86ef80cd (diff)
downloadchat-ffd6ccde2ed4b1d374d0835c5638a189df60a679.tar.gz
chat-ffd6ccde2ed4b1d374d0835c5638a189df60a679.tar.bz2
chat-ffd6ccde2ed4b1d374d0835c5638a189df60a679.zip
Adding caching of last 60 posts. (#4880)
Diffstat (limited to 'api/post.go')
-rw-r--r--api/post.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go
index ff3c1e510..acbd0acd7 100644
--- a/api/post.go
+++ b/api/post.go
@@ -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