From 3158d4ef91fc14b41a72e2e3000005c5f010a9c8 Mon Sep 17 00:00:00 2001 From: Index Date: Fri, 28 Jun 2024 10:50:38 -0500 Subject: [PATCH] fix: great divide user stats cache length --- js/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/background.js b/js/background.js index b1d2839..13fd858 100755 --- a/js/background.js +++ b/js/background.js @@ -109,7 +109,7 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) { let Statistics = result['PolyPlus_GreatDivideStats_' + request.userID] // cache for 5 minutes - if (Statistics !== undefined && (new Date().getTime() - Statistics.requested < 5000)) { + if (Statistics !== undefined && (new Date().getTime() - Statistics.requested < 300000)) { Statistics = Statistics.data } else { Statistics = (await (await fetch('https://stats.silly.mom/player_stats?id=' + request.userID)).json()).results[0]