From 487bb56a9b8f5c7a9efaabfc631f2f6c689ef74b Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 7 Feb 2017 12:36:37 -0800 Subject: Add caching for file infos (#5330) --- 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 96d9509b8..faf40c280 100644 --- a/store/store.go +++ b/store/store.go @@ -326,7 +326,8 @@ type FileInfoStore interface { Save(info *model.FileInfo) StoreChannel Get(id string) StoreChannel GetByPath(path string) StoreChannel - GetForPost(postId string) StoreChannel + GetForPost(postId string, allowFromCache bool) StoreChannel + InvalidateFileInfosForPostCache(postId string) AttachToPost(fileId string, postId string) StoreChannel DeleteForPost(postId string) StoreChannel } -- cgit v1.2.3-1-g7c22