warm up v8 after fork

This commit is contained in:
Sam Saffron
2016-07-16 15:11:34 +10:00
parent 2d1d9a78b8
commit 6777bd2629
2 changed files with 7 additions and 0 deletions

View File

@ -321,6 +321,9 @@ module Discourse
# re-establish
Sidekiq.redis = sidekiq_redis_config
start_connection_reaper
# in case v8 was initialized we want to make sure it is nil
PrettyText.reset_context
nil
end