Skip to content

Commit bcce373

Browse files
chore: remove KV get cache (#4711)
1 parent f16fee1 commit bcce373

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • apps/pay-test-exchange/app/api/status

apps/pay-test-exchange/app/api/status/route.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export async function POST(request: NextRequest) {
1414
return NextResponse.json({ error: 'No sessionId provided' }, { status: 400 })
1515
}
1616

17-
const session = await env.SESSIONID_STORAGE.get(sessionId)
17+
const session = await env.SESSIONID_STORAGE.get(sessionId, {
18+
// Default cache ttl is 60s, we put 0 to get latest data on request
19+
cacheTtl: 0
20+
})
1821

1922
if (!session) {
2023
return NextResponse.json({ error: 'Session not found' }, { status: 404 })

0 commit comments

Comments
 (0)