There was an error while loading. Please reload this page.
1 parent f16fee1 commit bcce373Copy full SHA for bcce373
1 file changed
apps/pay-test-exchange/app/api/status/route.ts
@@ -14,7 +14,10 @@ export async function POST(request: NextRequest) {
14
return NextResponse.json({ error: 'No sessionId provided' }, { status: 400 })
15
}
16
17
- const session = await env.SESSIONID_STORAGE.get(sessionId)
+ 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
+ })
21
22
if (!session) {
23
return NextResponse.json({ error: 'Session not found' }, { status: 404 })
0 commit comments