Change how long steam ids stay valid before becoming invalid

This commit is contained in:
Liam 2022-10-24 19:50:24 +01:00
parent e7706effdb
commit 8100ff76be

View File

@ -32,7 +32,7 @@ export async function isValidSteamId(steamId) {
}
}
await setValue(`${KEY}${steamId}`, valid);
await setValue(`${KEY}${steamId}`, valid, valid ? 86400 * 7 : 86400); // Expire in a week if is valid
console.log(
`[Cache]: Cached Steam ID for id ${steamId} in ${Date.now() - before}ms`
);