mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 20:01:44 +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
|