Skip MergeRequests::WriteDiffsCacheWorker on merge request create
What does this MR do and why?
Adds the skip_merge_request_diffs_cache_warm_up feature flag. When it
is enabled for the target project, MergeRequests::AfterCreateService
no longer enqueues MergeRequests::WriteDiffsCacheWorker.
The job warms the highlight cache of the regular merge request diff.
The Changes tab requests diff_head, so a mergeable merge request
renders the merge head diff and never reads that cache. The cache also
expires after one hour, and every reader writes it when it is missing.
Pushes do not warm it either. The only cost is a slower first Changes
view of a non-mergeable merge request within an hour of create.
References
Screenshots or screen recordings
| Before | After |
|---|---|
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.