PERF: Warm up caches in `SiteSerializer` while preloading app.

PERF: Warm up caches in SiteSerializer while preloading app.

Otherwise, time will be spent warming up the caches in the initial requests.

diff --git a/lib/discourse.rb b/lib/discourse.rb
index 36165ea..a2b6f29 100644
--- a/lib/discourse.rb
+++ b/lib/discourse.rb
@@ -929,6 +929,7 @@ module Discourse
       Search.prepare_data("test")
 
       JsLocaleHelper.load_translations(SiteSetting.default_locale)
+      Site.json_for(Guardian.new)
     end
 
     [

GitHub sha: 2e4182b4

This commit appears in #13246 which was approved by SamSaffron. It was merged by tgxworld.