From 83291e4c8fd1c2d234ac9f4254af849bed64cabf Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 7 Mar 2017 16:05:01 -0500 Subject: Merge 3.7 changes into master (#5679) * Save schema version for 3.7 (#5675) * Adding index and cache to reactinos store (#5654) * Fix badge count for push notifications (#5672) --- app/web_hub.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'app/web_hub.go') diff --git a/app/web_hub.go b/app/web_hub.go index 5b7e3623e..65d18481f 100644 --- a/app/web_hub.go +++ b/app/web_hub.go @@ -202,6 +202,18 @@ func InvalidateWebConnSessionCacheForUser(userId string) { } } +func InvalidateCacheForReactions(postId string) { + InvalidateCacheForReactionsSkipClusterSend(postId) + + if cluster := einterfaces.GetClusterInterface(); cluster != nil { + cluster.InvalidateCacheForReactions(postId) + } +} + +func InvalidateCacheForReactionsSkipClusterSend(postId string) { + Srv.Store.Reaction().InvalidateCacheForPost(postId) +} + func (h *Hub) Register(webConn *WebConn) { h.register <- webConn -- cgit v1.2.3-1-g7c22