Skip to content

How to add cache to current_active_user #1387

Closed Answered by frankie567
dima23113 asked this question in Q&A
Discussion options

You must be logged in to vote

Unless you heavily modify the Authenticator class, that's not easily doable.

That said, you shouldn't be too worried about the DB query. It's fast and guarantees you maximum security (since we check at each request the existence and state of the user). 99% of web frameworks out there are doing it like this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dima23113
Comment options

Answer selected by dima23113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants