From 63368bc853dac964027e2b1955fe5ac0626d3e10 Mon Sep 17 00:00:00 2001 From: SyniRon <66834451+SyniRon@users.noreply.github.com> Date: Sat, 2 Sep 2023 21:37:51 -0400 Subject: [PATCH] add grace period to cache expiry --- server/controllers/cacheManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/cacheManager.js b/server/controllers/cacheManager.js index 3b748c3..a8f7ce5 100644 --- a/server/controllers/cacheManager.js +++ b/server/controllers/cacheManager.js @@ -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); };