Adding index and cache to reactinos store (#5654)

Этот коммит содержится в:
Christopher Speller
2017-03-07 09:37:00 -05:00
коммит произвёл GitHub
родитель 115acb1fb1
Коммит 33b8b72a02
6 изменённых файлов: 97 добавлений и 10 удалений

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

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