diff options
Diffstat (limited to 'app/web_hub.go')
-rw-r--r-- | app/web_hub.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/app/web_hub.go b/app/web_hub.go index cadad0de4..0af73f39f 100644 --- a/app/web_hub.go +++ b/app/web_hub.go @@ -314,23 +314,6 @@ func InvalidateWebConnSessionCacheForUser(userId string) { } } -func InvalidateCacheForReactions(postId string) { - InvalidateCacheForReactionsSkipClusterSend(postId) - - if einterfaces.GetClusterInterface() != nil { - msg := &model.ClusterMessage{ - Event: model.CLUSTER_EVENT_INVALIDATE_CACHE_FOR_REACTIONS, - SendType: model.CLUSTER_SEND_BEST_EFFORT, - Data: postId, - } - einterfaces.GetClusterInterface().SendClusterMessage(msg) - } -} - -func InvalidateCacheForReactionsSkipClusterSend(postId string) { - Srv.Store.Reaction().InvalidateCacheForPost(postId) -} - func (h *Hub) Register(webConn *WebConn) { h.register <- webConn |