FIX: Enabling readonly mode should clear anon cache as well.

This commit is contained in:
Guo Xiang Tan
2018-12-18 11:56:25 +08:00
parent abbbcb2622
commit d7660dfe40
2 changed files with 7 additions and 12 deletions

View File

@ -313,6 +313,7 @@ module Discourse
end
MessageBus.publish(readonly_channel, true)
Site.clear_anon_cache!
true
end