diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-01-27 14:07:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-27 14:07:34 -0500 |
commit | 097289f8e473c799ee752aa56e08f605110f5217 (patch) | |
tree | 424cd42d691b28d1c08852dc02a69d69f2b70a65 /app/post.go | |
parent | 8eab04e944b3874f1fc4985344cbccec84c6002a (diff) | |
download | chat-097289f8e473c799ee752aa56e08f605110f5217.tar.gz chat-097289f8e473c799ee752aa56e08f605110f5217.tar.bz2 chat-097289f8e473c799ee752aa56e08f605110f5217.zip |
Merge 3.6.2 into master (#5211)
* Add webhook cache
* Add channel by name cache
* Fxing profiles in channels cache
* Fix merge
Diffstat (limited to 'app/post.go')
-rw-r--r-- | app/post.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/post.go b/app/post.go index 6d34cc035..d7bc2cf71 100644 --- a/app/post.go +++ b/app/post.go @@ -110,9 +110,6 @@ func CreatePost(post *model.Post, teamId string, triggerWebhooks bool) (*model.P } } - InvalidateCacheForChannel(rpost.ChannelId) - InvalidateCacheForChannelPosts(rpost.ChannelId) - if err := handlePostEvents(rpost, teamId, triggerWebhooks); err != nil { return nil, err } @@ -139,6 +136,9 @@ func handlePostEvents(post *model.Post, teamId string, triggerWebhooks bool) *mo channel = result.Data.(*model.Channel) } + InvalidateCacheForChannel(channel) + InvalidateCacheForChannelPosts(channel.Id) + var user *model.User if result := <-uchan; result.Err != nil { return result.Err |