If a request doesn't need to load the user, the check for whether the current user is an admin in after_request in order to show the query count and response time was making it load the user anyway. Stop doing this check and log the query count and response times instead.
If a request doesn't need to load the user, the check for whether the current user is an admin in
after_request
in order to show the query count and response time was making it load the user anyway. Stop doing this check and log the query count and response times instead.