mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 23:06:57 +08:00
5 lines
123 B
Ruby
5 lines
123 B
Ruby
if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
|
|
puts "Flushing redis (development mode)"
|
|
$redis.flushall
|
|
end
|