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
1 changed files with 2 additions and 0 deletions

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