Details
-
Type:
Task
-
Status: Closed (View Workflow)
-
Priority:
P2
-
Resolution: Done
-
Affects Version/s: 2.2.0
-
Fix Version/s: 2.3.0
-
Labels:
-
Template:customfield_11100 27615
-
Sprint:CP: sprint 73
-
Story Points:3
-
Development Team:Core: Platform
Description
Adam wrote on https://github.com/folio-org/mod-authtoken/pull/53 :
Note that the caching is still sub optimal.. There should be two cache entries.. Not one.
The first (and existing one) should cache the result of getPermissionsForUser. So the key obviously depends on user and tenant.
The second is the call toexpandPermissions. It does NOT depend on the user. This is important. The cache entry for that one can have a long TTL, because it only depends on ModuleDescriptors enabled for the tenant. These rarely changes!!!
I think the code would also be clearer if it was a simple "intercept" of those calls. Since the former have a short TTL it makes the 2nd call being called at times where that is not necessary.
If the cache are separate it also means the CacheEntry is simpler.
TestRail: Results
Attachments
Issue Links
- relates to
-
CHAL-79 Check in takes ~4 sec when item has request on it
-
- Closed
-
-
CIRC-452 analyze inventory/items?query=barcode=xxx
-
- Closed
-
-
MODAT-47 Incorrect extra permissions handling
-
- Closed
-
-
MODAT-51 investigate potential mod-authtoken performance issue
-
- Blocked
-
-
UICHKIN-111 Check in takes ~4 sec when item has request on it
-
- Closed
-