File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 */
44
55export const CACHE_KEY = "graph-data-3" ;
6- export const CACHE_TTL_SECONDS = 3600 * 6 ; // 6 hours
6+ export const CACHE_TTL_SECONDS = 3600 * 24 ; // 24 hours
77
88// Field reports cache
99export const REPORTS_CACHE_KEY = "field-reports-1" ;
@@ -15,7 +15,7 @@ export const POOLS_CACHE_TTL_SECONDS = 3600; // 1 hour
1515
1616// Globe data cache
1717export const GLOBE_CACHE_KEY = "globe-data-1" ;
18- export const GLOBE_CACHE_TTL_SECONDS = 3600 ; // 1 hour
18+ export const GLOBE_CACHE_TTL_SECONDS = 3600 * 24 ; // 24 hours
1919
2020// SWR configuration
2121export const SWR_REFRESH_INTERVAL = 5 * 60 * 1000 ; // 5 minutes
Original file line number Diff line number Diff line change @@ -44,5 +44,5 @@ export default async function handler(
4444}
4545
4646export const config = {
47- maxDuration : 120 ,
47+ maxDuration : 300 ,
4848} ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default async function handler(
3636}
3737
3838export const config = {
39- maxDuration : 60 ,
39+ maxDuration : 300 ,
4040 api : {
4141 responseLimit : false ,
4242 } ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export default async function handler(
3737}
3838
3939export const config = {
40- maxDuration : 60 ,
40+ maxDuration : 300 ,
4141 api : {
4242 responseLimit : false ,
4343 } ,
Original file line number Diff line number Diff line change 22 "crons" : [
33 {
44 "path" : " /api/cron" ,
5- "schedule" : " 0 */6 * * *"
5+ "schedule" : " 0 * * * *"
66 }
77 ]
88}
You can’t perform that action at this time.
0 commit comments