From 86fb0d87a3a09b237bec124ce0e74cd05aa164be Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 13 Dec 2016 22:24:24 -0500 Subject: Adding caching layer to some posts calls (#4779) --- store/store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'store/store.go') diff --git a/store/store.go b/store/store.go index 236fbbc13..b0cc09983 100644 --- a/store/store.go +++ b/store/store.go @@ -130,11 +130,12 @@ type PostStore interface { 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 - GetEtag(channelId string) 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) } type UserStore interface { -- cgit v1.2.3-1-g7c22