Skip to content
  • Stan Hu's avatar
    Cache avatar URLs and paths within a request · 52fdddbd
    Stan Hu authored
    In a merge request with many discussions, the avatar URL can be called
    thousands of times, inflicting a significant performance penalty
    especially when avatars are stored in object storage. To mitigate this
    problem, we can just cache the generated path any time it is requested.
    
    Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55355
    52fdddbd