only preload what is needed on most requests
This commit is contained in:
parent
b87a691176
commit
44f9ae3c65
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ module TPS
|
|||
end
|
||||
|
||||
config.middleware.use Rack::Attack
|
||||
config.middleware.use Flipper::Middleware::Memoizer, preload_all: true
|
||||
config.middleware.use Flipper::Middleware::Memoizer,
|
||||
preload: [:instructeur_bypass_email_login_token]
|
||||
|
||||
config.ds_env = ENV.fetch('DS_ENV', Rails.env)
|
||||
|
||||
|
|
Loading…
Reference in a new issue