-
Notifications
You must be signed in to change notification settings - Fork 0
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: add Prisma Accelerate caching to some of our queries #22
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -115,6 +115,7 @@ async function getHandler(req: Request): Promise<Response> { | |||
gdriveFileId: fileId, | |||
userId, | |||
}, | |||
cacheStrategy: { ttl: 60 * 5, swr: 60 * 2 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pattern is to add a TTL and SWR setting to each request that looks cacheable
Playwright e2e testsTo view traces locally, unzip the report and run: npx playwright show-report ~/Downloads/playwright-report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Could also add caching to the lessonSchema
requests I think.
Keen to get a better idea of when the data could be stale, and what the impact of that would be
Quality Gate passedIssues Measures |
🎉 This PR is included in version 1.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
How to test