mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 17:55:11 +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
|