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

feat: Cache customer auth context #278

Merged
merged 4 commits into from
Dec 11, 2024
Merged

Conversation

johnjcsmith
Copy link
Contributor

@johnjcsmith johnjcsmith commented Dec 10, 2024

Calling the handleCustomerAuth function during a request is expensive, cache the value for 5 minutes.
Customer auth failures are cached for 1 minute.

control-plane/src/utilities/cache.ts Dismissed Show resolved Hide resolved
@johnjcsmith johnjcsmith changed the title chore: Cache customer auth context feat: Cache customer auth context Dec 10, 2024
@johnjcsmith johnjcsmith merged commit f8de989 into main Dec 11, 2024
28 checks passed
@johnjcsmith johnjcsmith deleted the feat/cache-customer-auth-context branch December 11, 2024 01:10
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

Successfully merging this pull request may close these issues.

2 participants