Skip to content

Commit 1e794f9

Browse files
committed
Add an option to not flush redis every time sidekiq.rb is loaded in development
1 parent 13f8f3c commit 1e794f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/initializers/sidekiq.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
$redis = DiscourseRedis.new
44

5-
if Rails.env.development?
5+
if Rails.env.development? and !ENV['DO_NOT_FLUSH_REDIS']
66
puts "Flushing redis (development mode)"
77
$redis.flushall
88
end

0 commit comments

Comments
 (0)