Added Prisma Acelerate for Caching

This commit is contained in:
Ahmad 2024-03-17 00:48:01 -04:00
parent 48646e22a7
commit 487605df3e
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
7 changed files with 21 additions and 3 deletions

View file

@ -41,6 +41,7 @@ const BoardIdLayout = async ({
id: params.boardId,
orgId,
},
cacheStrategy: { ttl: 30, swr: 60 },
});
if (!board) notFound();

View file

@ -25,6 +25,7 @@ export const BoardList = async () => {
orderBy: {
createdAt: 'desc',
},
cacheStrategy: { ttl: 30, swr: 60 },
});
const availableCount = await getAvailableCount();