diff --git a/app/models/concerns/api_action_caching.rb b/app/models/concerns/api_action_caching.rb index ef0eba604d..05dbc9f0d4 100644 --- a/app/models/concerns/api_action_caching.rb +++ b/app/models/concerns/api_action_caching.rb @@ -11,8 +11,9 @@ module ApiActionCaching include ActionController::Caching::Actions include AbstractController::Layouts - # This config is not passed to the controller automatically with ActionController::Metal + # These configs are not assigned to the controller automatically with ActionController::Metal self.cache_store = Rails.configuration.cache_store + self.perform_caching = ActionController::Base.perform_caching # ActionController::Caching asks for a controller's layout, but they're not used in the API layout false