• Oswaldo Ferreira's avatar
    Cache diff highlight in discussions · 58342bbcf8e5
    Oswaldo Ferreira authored
    This commit handles note diffs caching, which considerably improves
    the performance on merge requests with lots of comments.
    Important to note that the caching approach taken here is different
    from `Gitlab::Diff::HighlightCache`. We do not reset the whole cache
    when a new push is sent or anything else. That's because discussions
    diffs are persisted and do not change.
    58342bbcf8e5
noteable.rb 2.64 KB