From b212acf312ad640455fa715427ac19e6930dc61d Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Thu, 24 Nov 2016 05:26:45 -0800 Subject: PLT-4429 disabling at_all at_channel metions mentions when channel has more than 1k users (#4627) * PLT-4429 disabling explicit mentions when channel has more than 1k users * Fixing test case * Adding setting to the admin console * Fixing bad translation --- api/web_hub.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'api/web_hub.go') diff --git a/api/web_hub.go b/api/web_hub.go index b607703f2..4136eaf7c 100644 --- a/api/web_hub.go +++ b/api/web_hub.go @@ -102,6 +102,11 @@ func PublishSkipClusterSend(message *model.WebSocketEvent) { } } +func InvalidateCacheForChannel(channelId string) { + Srv.Store.User().InvalidateProfilesInChannelCache(channelId) + Srv.Store.Channel().InvalidateMemberCount(channelId) +} + func InvalidateCacheForUser(userId string) { InvalidateCacheForUserSkipClusterSend(userId) -- cgit v1.2.3-1-g7c22