# Remove cache for all diffs on this MR. Do not use the association on the# model, as that will interfere with other actions happening when# reloading the diff.MergeRequestDiff.where(merge_request: merge_request).eachdo|merge_request_diff|nextifmerge_request_diff==new_diffmerge_request_diff.diffs.clear_cache!end