diff --git a/lib/org-limit.ts b/lib/org-limit.ts index a274281..64e5ed7 100644 --- a/lib/org-limit.ts +++ b/lib/org-limit.ts @@ -58,6 +58,7 @@ export const hasAvailableCount = async () => { const orgLimit = await db.orgLimit.findUnique({ where: { orgId }, + cacheStrategy: { ttl: 30, swr: 60 }, }); if (!orgLimit || orgLimit.count < MAX_FREE_BOARDS) { @@ -76,6 +77,7 @@ export const getAvailableCount = async () => { const orgLimit = await db.orgLimit.findUnique({ where: { orgId }, + cacheStrategy: { ttl: 30, swr: 60 }, }); if (!orgLimit) {