• Yorick Peterse's avatar
    Cache the number of user SSH keys · 3e561736
    Yorick Peterse authored
    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.
    3e561736
user_spec.rb 75.5 KB