From 3a4d85e8401f1c39b1f83701f2e3189704f6b6a8 Mon Sep 17 00:00:00 2001 From: chambaz Date: Tue, 10 Dec 2024 13:32:06 -0500 Subject: [PATCH] chore: increase multi price cache max age --- apps/marginfi-v2-ui/src/pages/api/tokens/multi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/marginfi-v2-ui/src/pages/api/tokens/multi.ts b/apps/marginfi-v2-ui/src/pages/api/tokens/multi.ts index 52f976bf33..9a0780e786 100644 --- a/apps/marginfi-v2-ui/src/pages/api/tokens/multi.ts +++ b/apps/marginfi-v2-ui/src/pages/api/tokens/multi.ts @@ -81,8 +81,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) } const data = await response.json(); - // cache for 4 minutes - res.setHeader("Cache-Control", "s-maxage=240, stale-while-revalidate=59"); + // cache for 20 minutes + res.setHeader("Cache-Control", "s-maxage=1200, stale-while-revalidate=300"); res.status(200).json(data); } catch (error) { console.error("Error:", error);