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