Adding index and cache to reactinos store (#5654)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
115acb1fb1
Коммит
33b8b72a02
@@ -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
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user