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 /store/store.go | |
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 'store/store.go')
-rw-r--r-- | store/store.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/store/store.go b/store/store.go index 05eb7f4e1..40b641002 100644 --- a/store/store.go +++ b/store/store.go @@ -130,13 +130,13 @@ type PostStore interface { GetFlaggedPosts(userId string, offset int, limit int) StoreChannel GetPostsBefore(channelId string, postId string, numPosts int, offset int) StoreChannel GetPostsAfter(channelId string, postId string, numPosts int, offset int) StoreChannel - GetPostsSince(channelId string, time int64) StoreChannel + GetPostsSince(channelId string, time int64, allowFromCache bool) StoreChannel GetEtag(channelId string, allowFromCache bool) StoreChannel Search(teamId string, userId string, params *model.SearchParams) StoreChannel AnalyticsUserCountsWithPostsByDay(teamId string) StoreChannel AnalyticsPostCountsByDay(teamId string) StoreChannel AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) StoreChannel - InvalidatePostEtagCache(channelId string) + InvalidateLastPostTimeCache(channelId string) } type UserStore interface { |