mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 02:43:38 +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
|