discourse/config/initializers/001-redis.rb

5 lines
123 B
Ruby
Raw Normal View History

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