diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-02-07 12:36:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-07 12:36:37 -0800 |
commit | 487bb56a9b8f5c7a9efaabfc631f2f6c689ef74b (patch) | |
tree | a92bcbe004045581752c33dfd126c211300cda25 /store/store.go | |
parent | eb767d2c1cb65724f25479144d68a9d102d32dfa (diff) | |
download | chat-487bb56a9b8f5c7a9efaabfc631f2f6c689ef74b.tar.gz chat-487bb56a9b8f5c7a9efaabfc631f2f6c689ef74b.tar.bz2 chat-487bb56a9b8f5c7a9efaabfc631f2f6c689ef74b.zip |
Add caching for file infos (#5330)
Diffstat (limited to 'store/store.go')
-rw-r--r-- | store/store.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |