Community
Participate
Working Groups
Instead of querying the DB every time it needs to know about user roles, the portal should cache the roles once per request and store them in the context for retrieval anywhere in the code where roles information is needed.
I have added the ability to cache the user roles to the context. I have also updated all of the functions which currently used the DB for roles information. What remains to be done is to convert all of the factories to used the context for cached information.
Gabe, let's do this in the next two weeks. Should be a simple matter of editing all the factories. Tedious but worth it.
This is actually done. In all the places where it makes sense to me to use the cached roles we have already done so since this capability was added 1.5 years ago.
Closed or released for STAGING_326. Please see final comments for actual resolution status. This message does not imply that any action was taken which was not already described.