summaryrefslogtreecommitdiffstats
path: root/app/web_hub.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/web_hub.go')
-rw-r--r--app/web_hub.go12
1 files changed, 12 insertions, 0 deletions
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