Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
I won't close this yet, but this is very much as designed. It's designed to be a way to bulk load permission sets that you're going to need, if you don't have them. Repeated calls should use the cached values if they're available.The "cache all" approach is really the exception to the rule in this class, and it's mostly because we don't know what sets we don't have without them being enumerated -- this method could certainly be updated to not overwrite the local cache if a value was already there.Generally speaking, there's no real expectation of a user's permissions being changed and that necessarily instantly being reflected within the current request. There are situations where significant rebuilds have to happen so it can take a bit of time for changes to apply.So what is the use case that causes issues? If anything, it sounds more like you may need a system to explicitly remove cached sets, though that might have other knock on effects I'm not anticipating.
I won't close this yet, but this is very much as designed. It's designed to be a way to bulk load permission sets that you're going to need, if you don't have them. Repeated calls should use the cached values if they're available.
The "cache all" approach is really the exception to the rule in this class, and it's mostly because we don't know what sets we don't have without them being enumerated -- this method could certainly be updated to not overwrite the local cache if a value was already there.
Generally speaking, there's no real expectation of a user's permissions being changed and that necessarily instantly being reflected within the current request. There are situations where significant rebuilds have to happen so it can take a bit of time for changes to apply.
So what is the use case that causes issues? If anything, it sounds more like you may need a system to explicitly remove cached sets, though that might have other knock on effects I'm not anticipating.
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences