mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 10:33: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
|