2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-05-02 19:55:56 -04:00
|
|
|
if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
|
2013-03-11 08:33:20 -04:00
|
|
|
puts "Flushing redis (development mode)"
|
2019-12-03 04:05:53 -05:00
|
|
|
Discourse.redis.flushall
|
2013-03-11 08:33:20 -04:00
|
|
|
end
|