mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: The "too similar" check happened when trying to make a post a wiki
This commit is contained in:
@ -70,6 +70,10 @@ class DiscourseRedis
|
||||
}
|
||||
end
|
||||
|
||||
def delete_prefixed(prefix)
|
||||
keys("#{prefix}*").each { |k| $redis.del(k) }
|
||||
end
|
||||
|
||||
def flushdb
|
||||
keys.each{|k| del(k)}
|
||||
end
|
||||
|
Reference in New Issue
Block a user