mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 06:15:28 +08:00
11 lines
298 B
Ruby
11 lines
298 B
Ruby
# frozen_string_literal: true
|
|
|
|
if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
|
|
puts "Flushing redis (development mode)"
|
|
Discourse.redis.flushdb
|
|
end
|
|
|
|
# Pending https://github.com/MiniProfiler/rack-mini-profiler/pull/450 and
|
|
# upgrade to Sidekiq 6.1
|
|
Redis.exists_returns_integer = true
|