Skip to content

Commit 208f447

Browse files
authored
Reduce cache time on non-member (#92)
1 parent 48fa931 commit 208f447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/routes/membership.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { AvailableSQSFunctions, SQSPayload } from "common/types/sqsMessage.js";
2424
import { SendMessageCommand, SQSClient } from "@aws-sdk/client-sqs";
2525
import rawbody from "fastify-raw-body";
2626

27-
const NONMEMBER_CACHE_SECONDS = 1800; // 30 minutes
27+
const NONMEMBER_CACHE_SECONDS = 60; // 1 minute
2828
const MEMBER_CACHE_SECONDS = 43200; // 12 hours
2929

3030
const membershipPlugin: FastifyPluginAsync = async (fastify, _options) => {

0 commit comments

Comments
 (0)