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. |
||
|---|---|---|
| .. | ||
| activity_service_spec.rb | ||
| build_service_spec.rb | ||
| create_service_spec.rb | ||
| destroy_service_spec.rb | ||
| keys_count_service_spec.rb | ||
| last_push_event_service_spec.rb | ||
| migrate_to_ghost_user_service_spec.rb | ||
| refresh_authorized_projects_service_spec.rb | ||
| update_service_spec.rb | ||