only preload what is needed on most requests

This commit is contained in:
simon lehericey 2021-04-06 14:58:23 +02:00
parent b87a691176
commit 44f9ae3c65

View file

@ -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)