Add Gitlab::AvatarCache and cache lookups by email
Previously we were hitting the database every time we looked for an avatar with an email address. This introduces a new cache which stores these values, greatly cutting a number of n+1 queries where we load avatars in views.
Showing
lib/gitlab/avatar_cache.rb
0 → 100644
Please register or sign in to comment