Add an option to not flush redis every time sidekiq.rb is loaded in development

This commit is contained in:
Neil Lalonde 2013-02-21 13:20:26 -05:00
parent 13f8f3c45e
commit 1e794f98a7
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ require "#{Rails.root}/lib/discourse_redis"
$redis = DiscourseRedis.new
if Rails.env.development?
if Rails.env.development? and !ENV['DO_NOT_FLUSH_REDIS']
puts "Flushing redis (development mode)"
$redis.flushall
end