0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 02:19:55 +08:00
discourse/config/initializers/000-mini_racer.rb
David Taylor 4f08275c2b
DEV: Add experimental DISCOURSE_MINI_RACER_SINGLE_THREADED (#38119)
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.
2026-02-27 15:57:02 +00:00

3 lines
124 B
Ruby
Vendored

# frozen_string_literal: true
MiniRacer::Platform.set_flags!(:single_threaded) if GlobalSetting.mini_racer_single_threaded