Cache avatar URLs and paths within a request
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.
Before:
After:
Edited by Stan Hu