mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 19:02:40 +08:00
FIX: Enabling readonly mode should clear anon cache as well.
This commit is contained in:
@ -313,6 +313,7 @@ module Discourse
|
||||
end
|
||||
|
||||
MessageBus.publish(readonly_channel, true)
|
||||
Site.clear_anon_cache!
|
||||
true
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user