Commit 68b7a7f2 authored by Robert May's avatar Robert May

Only use declared params in cache key

parent 87807146
......@@ -40,7 +40,7 @@ module API
get ':id/repository/branches' do
ff_enabled = Feature.enabled?(:api_caching_rate_limit_branches, user_project, default_enabled: :yaml)
cache_action_if(ff_enabled, [user_project, :branches, current_user, params], expires_in: 30.seconds) do
cache_action_if(ff_enabled, [user_project, :branches, current_user, declared_params], expires_in: 30.seconds) do
user_project.preload_protected_branches
repository = user_project.repository
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment