REVERT: message bus changes

This commit is contained in:
Robin Ward
2015-12-08 15:32:31 -05:00
parent d22a479c61
commit 4820d5c7b0
38 changed files with 84 additions and 95 deletions

View File

@ -1,15 +0,0 @@
if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
puts "Flushing redis (development mode)"
$redis.flushall
end
if defined?(PhusionPassenger)
PhusionPassenger.on_event(:starting_worker_process) do |forked|
if forked
Discourse.after_fork
else
# We're in conservative spawning mode. We don't need to do anything.
end
end
end