FIX: The "too similar" check happened when trying to make a post a wiki

This commit is contained in:
Robin Ward
2015-02-02 12:44:21 -05:00
parent b56999e984
commit f15b0d205f
5 changed files with 30 additions and 5 deletions

View File

@ -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