mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-01 10:14:34 +08:00
When enabled, this sets mini-racer to single-threaded mode. This is theoretically fork-safe, so we can warmup the AssetProcessor and PrettyText contexts in the mold process before forking. Introducing as a default-disabled experimental mode for now so that we can confirm everything works as expected.
3 lines
124 B
Ruby
3 lines
124 B
Ruby
# frozen_string_literal: true
|
|
|
|
MiniRacer::Platform.set_flags!(:single_threaded) if GlobalSetting.mini_racer_single_threaded
|