This change stores the authenticated user's userPart the first time it is fetched per request. Without this, the userPart is fetched from the DB for every call to GetAuthenticatedUser(). On pages with an already large number of database calls, this can effectively double the number of db hits and degrade performance.
This change stores the authenticated user's userPart the first time it is fetched per request. Without this, the userPart is fetched from the DB for every call to
GetAuthenticatedUser()
. On pages with an already large number of database calls, this can effectively double the number of db hits and degrade performance.