mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
6 lines
163 B
Ruby
6 lines
163 B
Ruby
# frozen_string_literal: true
|
|
|
|
if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
|
|
puts "Flushing redis (development mode)"
|
|
Discourse.redis.flushall
|
|
end
|