aboutsummaryrefslogtreecommitdiff
path: root/src/constants.ts
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-28 15:20:44 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-28 15:20:44 -0600
commitd9a7e35f7635c48a928ce362654da094b69c042c (patch)
treeb61b1933722fbf2430dc36dd212d532df5ddb36b /src/constants.ts
parent7b1d1cb2c7f1f5a98d4be54396d228ef02028679 (diff)
downloadskyblock-api-d9a7e35f7635c48a928ce362654da094b69c042c.tar.gz
skyblock-api-d9a7e35f7635c48a928ce362654da094b69c042c.tar.bz2
skyblock-api-d9a7e35f7635c48a928ce362654da094b69c042c.zip
instantly update leaderboard when profile is viewed
Diffstat (limited to 'src/constants.ts')
-rw-r--r--src/constants.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/constants.ts b/src/constants.ts
index c7581ae..93ef85c 100644
--- a/src/constants.ts
+++ b/src/constants.ts
@@ -41,9 +41,9 @@ interface GithubFile {
sha: string
}
-// cache files for a day
+// cache files for an hour
const fileCache = new NodeCache({
- stdTTL: 60 * 60 * 24,
+ stdTTL: 60 * 60,
checkperiod: 60,
useClones: false,
})