From 09b49c26ddfdb20ced61e7dfd4192e750ce40449 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 31 Jul 2017 08:15:23 -0700 Subject: PLT-5308 Caching layer part 2 (#6973) * Adding Reaction store cache layer example * Implementing reaction store in new caching system. * Redis for reaction store * Adding redis library * Adding invalidation for DeleteAllWithEmojiName and other minor enhancements --- app/web_hub.go | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'app/web_hub.go') 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 -- cgit v1.2.3-1-g7c22