* Save schema version for 3.7 (#5675)

* Adding index and cache to reactinos store (#5654)

* Fix badge count for push notifications (#5672)
Этот коммит содержится в:
Joram Wilander
2017-03-07 16:05:01 -05:00
коммит произвёл GitHub
родитель e753d3dc3c
Коммит 83291e4c8f
8 изменённых файлов: 106 добавлений и 11 удалений

Просмотреть файл

@@ -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