Reduce load on DB for license upgrade check

  1. Only check if the user is an admin
  2. Cache the active user count for an hour

Helps gitlab-com/operations#298

Merge request reports

Loading