Skip to content

Commit

Permalink
chore: increase multi price cache max age
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Dec 10, 2024
1 parent fae452f commit 3a4d85e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/marginfi-v2-ui/src/pages/api/tokens/multi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3a4d85e

Please sign in to comment.