We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13f8f3c commit 1e794f9Copy full SHA for 1e794f9
1 file changed
config/initializers/sidekiq.rb
@@ -2,7 +2,7 @@
2
3
$redis = DiscourseRedis.new
4
5
-if Rails.env.development?
+if Rails.env.development? and !ENV['DO_NOT_FLUSH_REDIS']
6
puts "Flushing redis (development mode)"
7
$redis.flushall
8
end
0 commit comments