Skip to content

Commit c94d297

Browse files
committedMar 25, 2025··
chore: increase cache time on markets page
1 parent f267339 commit c94d297

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed
 

‎apps/frontend/src/app/(core)/markets/[pair]/page.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import { isMobile } from '@/utils/isMobile';
55
import { headers } from 'next/headers';
66
import { notFound } from 'next/navigation';
77

8-
export const dynamic = 'force-dynamic';
9-
108
export async function generateMetadata({
119
params,
1210
}: { params: { pair: string } }) {

‎apps/frontend/src/app/(core)/markets/page.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ export const metadata: Metadata = {
1010
title: 'Markets',
1111
};
1212

13-
export const dynamic = 'force-dynamic';
14-
1513
export default async function Page() {
1614
const userAgent = headers().get('user-agent') || '';
1715
const mobile = isMobile(userAgent);

‎apps/frontend/src/lib/charts/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const getChartData = async () => {
3939
version: appConfig.client.sentioProcessorVersion,
4040
}),
4141
next: {
42-
revalidate: 300, // Cache for 5 min
42+
revalidate: 3600, // Cache for 1h
4343
},
4444
});
4545

@@ -73,7 +73,7 @@ export const getChartData = async () => {
7373
version: appConfig.client.sentioProcessorVersion,
7474
}),
7575
next: {
76-
revalidate: 300, // Cache for 5 min
76+
revalidate: 3600, // Cache for 1h
7777
},
7878
});
7979

0 commit comments

Comments
 (0)
Please sign in to comment.