ardasen commited on
Commit
18d4588
·
verified ·
1 Parent(s): 3c7dbd2

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -2
server.js CHANGED
@@ -24,8 +24,8 @@ const fetchDataAndUpdateCache = async (url, cacheKey) => {
24
  };
25
 
26
  // Schedule to update cache every 15 minutes for all endpoints
27
- //cron.schedule('*/15 * * * *', async () => {
28
- cron.schedule('0 */12 * * *', async () => {
29
  // Example: Update current season data
30
  await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}current.json`, 'currentSeason');
31
 
 
24
  };
25
 
26
  // Schedule to update cache every 15 minutes for all endpoints
27
+ cron.schedule('*/15 * * * *', async () => {
28
+ //cron.schedule('0 */12 * * *', async () => {
29
  // Example: Update current season data
30
  await fetchDataAndUpdateCache(`${ERGAST_API_BASE_URL}current.json`, 'currentSeason');
31