Commit 6f9481a6 authored by Dmitriy Zaporozhets (DZ)'s avatar Dmitriy Zaporozhets (DZ)

Merge branch 'change_cache_merge_request_api_expiration_time' into 'master'

Increase expiration of get merge requests API cache

See merge request gitlab-org/gitlab!68465
parents d2e20840 7bf0a111
...@@ -202,7 +202,7 @@ module API ...@@ -202,7 +202,7 @@ module API
options[:project] = user_project options[:project] = user_project
if Feature.enabled?(:api_caching_merge_requests, user_project, type: :development, default_enabled: :yaml) if Feature.enabled?(:api_caching_merge_requests, user_project, type: :development, default_enabled: :yaml)
present_cached merge_requests, expires_in: 10.minutes, **options present_cached merge_requests, expires_in: 12.hours, **options
else else
present merge_requests, options present merge_requests, options
end end
......
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