discourse/config/initializers/001-redis.rb

5 lines
123 B
Ruby

if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
puts "Flushing redis (development mode)"
$redis.flushall
end