Skip to content

Commit

Permalink
add grace period to cache expiry
Browse files Browse the repository at this point in the history
  • Loading branch information
SyniRon committed Sep 3, 2023
1 parent a93524a commit 63368bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/cacheManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const scheduleCacheUpdate = (updateFunction, key) => {

setTimeout(() => {
updateFunction();
setInterval(updateFunction, 3600 * 1000); // Update every 3600 seconds (1 hour)
setInterval(updateFunction, 3660 * 1000); // Update every 3660 seconds (1 hour and 1 minute)
}, delay);
};

Expand Down

0 comments on commit 63368bc

Please sign in to comment.