DEV: No longer need to clear anon cache when toggling readonly mode.

This commit is contained in:
Guo Xiang Tan
2020-06-12 09:58:02 +08:00
parent 62ad473716
commit 78b5ab746c
2 changed files with 0 additions and 3 deletions

View File

@ -448,7 +448,6 @@ module Discourse
end
MessageBus.publish(readonly_channel, true)
Site.clear_anon_cache!
true
end
@ -484,7 +483,6 @@ module Discourse
def self.disable_readonly_mode(key = READONLY_MODE_KEY)
Discourse.redis.del(key)
MessageBus.publish(readonly_channel, false)
Site.clear_anon_cache!
true
end