discourse/config/initializers/001-redis.rb

7 lines
163 B
Ruby

# frozen_string_literal: true
if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
puts "Flushing redis (development mode)"
Discourse.redis.flushall
end