diff options
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) { |