A platform for community discussion. Free, open, simple.
FIX: Switch recently readonly mdoe cache to a `DistributedCache`.
Guo Xiang Tane75ad37aaf26
diff --git a/lib/discourse.rb b/lib/discourse.rbindex c78402b5638..9ea8ef90ee1 100644--- a/lib/discourse.rb+++ b/lib/discourse.rb@@ -354,7 +354,7 @@ module Discourseenddef self.last_read_only- @last_read_only ||= {}+ @last_read_only ||= DistributedCache.new('last_read_only', namespace: false)enddef self.recently_readonly?