2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Try warming up pretty text before we fork

This commit is contained in:
Robin Ward 2016-07-13 17:07:20 -04:00
parent 7b6d946613
commit 2e71e6fc6f

View file

@ -48,6 +48,8 @@ before_fork do |server, worker|
table.classify.constantize.first rescue nil
end
PrettyText.cook "<p>initialize <em>pretty</em> <strong>text</strong></p>"
# router warm up
Rails.application.routes.recognize_path('abc') rescue nil