Add: 管理画面で特に負荷の大きい処理を無効にする環境変数 (#633)

This commit is contained in:
KMY(雪あすか) 2024-03-05 12:05:52 +09:00 committed by GitHub
parent 0ed58512a1
commit 0a3007a9b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 41 additions and 5 deletions

View file

@ -0,0 +1,8 @@
# frozen_string_literal: true
module HighLoadHelper
def allow_high_load?
ENV.fetch('ALLOW_HIGH_LOAD', 'true') == 'true'
end
module_function :allow_high_load?
end