PERF: Warm up caches in SiteSerializer while preloading app.

Otherwise, time will be spent warming up the caches in the initial
requests.
This commit is contained in:
Alan Guo Xiang Tan 2021-06-02 13:25:12 +08:00
parent 6a79864f14
commit 2e4182b4b3

View File

@ -929,6 +929,7 @@ module Discourse
Search.prepare_data("test")
JsLocaleHelper.load_translations(SiteSetting.default_locale)
Site.json_for(Guardian.new)
end
[