New diffs: Cache conflicts RPC call
Overview
The diffs in Draft: big MR (!141764 - closed) are slower because it takes ~3s
to list the conflicts file to show the following message:
We should consider caching this RPC call: https://gitlab.com/gitlab-org/gitlab/-/blob/a0bf3b8f77caeacd7b318ed869c0424a0bf27bf8/app/helpers/diff_helper.rb#L227-242
The cache key should contain source_sha
and target_sha
so we could invalidate it when source or target changes. It can be done similar to diverging counts
Edited by Igor Drozdov