DEV: Warm ActiveRecord cache for Sidekiq after Rails initializes. (PR #14253)

Sidekiq was failing to boot in dev due to the following error. It seems like constantizing stuff before the autoloader has kicked in caused stuff to go weird. Root cause has not been identified but there is no reason for us to have to warm up the cache during the initialization of Rails.

2021-09-06T04:28:43.338Z pid=112028 tid=26vc WARN: NameError: uninitialized constant #<Class:0x0000564b365040d8>::RateLimiter
2021-09-06T04:28:43.338Z pid=112028 tid=26vc WARN: /discourse/app/models/post.rb:9:in `<class:Post>'
/discourse/app/models/post.rb:6:in `<top (required)>'
/ruby/2.7.4/lib/ruby/gems/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:26:in `require'
/ruby/2.7.4/lib/ruby/gems/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:26:in `require'

GitHub

Thank you for reviewing @ZogStriP