mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:41:31 +08:00
DEV: Remove deprecated bootsnap options (#11929)
Bootsnap started printing these warnings: ``` [DEPRECATED] Bootsnap's `autoload_paths_cache:` option is deprecated and will be removed. If you use Zeitwerk this option is useless, and if you are still using the classic autoloader upgrading is recommended. [DEPRECATED] Bootsnap's `disable_trace:` option is deprecated and will be removed. If you use Ruby 2.5 or newer this option is useless, if not upgrading is recommended. ```
This commit is contained in:
parent
4860c7c6ee
commit
fa33e4863d
|
@ -23,8 +23,6 @@ if (ENV['DISABLE_BOOTSNAP'] != '1')
|
|||
Bootsnap.setup(
|
||||
cache_dir: 'tmp/cache', # Path to your cache
|
||||
load_path_cache: true, # Should we optimize the LOAD_PATH with a cache?
|
||||
autoload_paths_cache: true, # Should we optimize ActiveSupport autoloads with cache?
|
||||
disable_trace: false, # Sets `RubyVM::InstructionSequence.compile_option = { trace_instruction: false }`
|
||||
compile_cache_iseq: true, # Should compile Ruby code into ISeq cache?
|
||||
compile_cache_yaml: false # Skip YAML cache for now, cause we were seeing issues with it
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user