Cache the number of user SSH keys
By caching the number of personal SSH keys we reduce the number of
queries necessary on pages such as ProjectsController#show (which can
end up querying this data multiple times).
The cache is refreshed/flushed whenever an SSH key is added, removed, or
when a user is removed.
Showing
app/services/base_count_service.rb
0 → 100644
app/services/users/keys_count_service.rb
0 → 100644
spec/services/base_count_service_spec.rb
0 → 100644
Please
register
or
sign in
to comment