Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How long are Subjects cached in deadbolt? #75

Closed
markehammons opened this issue Apr 10, 2017 · 4 comments
Closed

How long are Subjects cached in deadbolt? #75

markehammons opened this issue Apr 10, 2017 · 4 comments

Comments

@markehammons
Copy link

Is there a way to make sure cached user information is updated if I know it needs updated? Or is the cache time for users very short?

@schaloner
Copy link
Collaborator

schaloner commented Apr 18, 2017

Apologies for the delay in replying.

If you enable user caching by setting deadbolt.java.cache-user to true, this caches the subject for the lifetime of the request. It's an optimization that primarily benefits template constraints, which may be used multiple times within a single request.

@mkurz
Copy link
Owner

mkurz commented Nov 5, 2017

I think this can be closed.

@mkurz mkurz closed this as completed Mar 2, 2018
@eximius313
Copy link

@mkurz I think it's a good idea to clarify that one in new docs as well

@mkurz
Copy link
Owner

mkurz commented Mar 2, 2018

@eximius313 Added to mkurz/deadbolt-2-java#89: "Clarify how caching works..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants