mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
forking in passenger was bust, message bus subscriptions would stop working after fork
This commit is contained in:
@@ -13,6 +13,7 @@ if defined?(PhusionPassenger)
|
||||
# We're in smart spawning mode.
|
||||
$redis = DiscourseRedis.new
|
||||
Discourse::Application.config.cache_store.reconnect
|
||||
MessageBus.after_fork
|
||||
else
|
||||
# We're in conservative spawning mode. We don't need to do anything.
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user