mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:31:56 +08:00
7 lines
162 B
Ruby
7 lines
162 B
Ruby
# frozen_string_literal: true
|
|
|
|
if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
|
|
puts "Flushing redis (development mode)"
|
|
Discourse.redis.flushdb
|
|
end
|