diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-12-20 09:41:04 -0500 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-12-20 11:41:04 -0300 |
commit | 148fd01b54776cf7814f2f2370c60e48058c48ec (patch) | |
tree | b7c013faa87bb1c48144588838902297640f799e /api | |
parent | 927eb659781579c6e5cdddafc5e1a02999cf4571 (diff) | |
download | chat-148fd01b54776cf7814f2f2370c60e48058c48ec.tar.gz chat-148fd01b54776cf7814f2f2370c60e48058c48ec.tar.bz2 chat-148fd01b54776cf7814f2f2370c60e48058c48ec.zip |
Modifying post etag cache to apply to getPostsSince (#4837)
Diffstat (limited to 'api')
-rw-r--r-- | api/post.go | 2 | ||||
-rw-r--r-- | api/web_hub.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/api/post.go b/api/post.go index 1b855cab9..00cf21dda 100644 --- a/api/post.go +++ b/api/post.go @@ -1324,7 +1324,7 @@ func getPostsSince(c *Context, w http.ResponseWriter, r *http.Request) { return } - pchan := Srv.Store.Post().GetPostsSince(id, time) + pchan := Srv.Store.Post().GetPostsSince(id, time, true) if !HasPermissionToChannelContext(c, id, model.PERMISSION_READ_CHANNEL) { return diff --git a/api/web_hub.go b/api/web_hub.go index da40bf1c7..107491434 100644 --- a/api/web_hub.go +++ b/api/web_hub.go @@ -124,7 +124,7 @@ func InvalidateCacheForChannelPosts(channelId string) { } func InvalidateCacheForChannelPostsSkipClusterSend(channelId string) { - Srv.Store.Post().InvalidatePostEtagCache(channelId) + Srv.Store.Post().InvalidateLastPostTimeCache(channelId) } func InvalidateCacheForUser(userId string) { |