You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed on the parent
[issue](dotCMS#32430 (comment))
a 404 strategy was added, and now the addPermissionsToCache function
doesn't log an error if the list of permissions is empty, it returns an
empty collection and puts on the cache a new object
`EmptyPermissionsCacheEntry` which will represent this 404 and expires
in 5 minutes.
Then when getting the permissions from the cache if it is this object
and it has expired then remove it from the cache and return null to
recalculate it.
This PR fixes: dotCMS#32998
---------
Co-authored-by: Daniel Silva <[email protected]>
Logger.warn(this.getClass(), ()->" !!! Putting an empty list of permissions in the cache for asset:"+ key +". Every asset should have at least 1 permission (or inherited permission) associated with it");
0 commit comments