mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
Follow up to 704a122656
.
This commit is contained in:
parent
e75ad37aaf
commit
9e795b9d90
|
@ -358,11 +358,8 @@ module Discourse
|
|||
end
|
||||
|
||||
def self.recently_readonly?
|
||||
if (read_only = last_read_only[$redis.namespace]).blank?
|
||||
return false
|
||||
end
|
||||
|
||||
read_only > 15.seconds.ago
|
||||
read_only = last_read_only[$redis.namespace]
|
||||
read_only.present? && read_only > 15.seconds.ago
|
||||
end
|
||||
|
||||
def self.received_readonly!
|
||||
|
|
Loading…
Reference in New Issue
Block a user