Change how long steam ids stay valid before becoming invalid
This commit is contained in:
parent
e7706effdb
commit
8100ff76be
@ -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(
|
console.log(
|
||||||
`[Cache]: Cached Steam ID for id ${steamId} in ${Date.now() - before}ms`
|
`[Cache]: Cached Steam ID for id ${steamId} in ${Date.now() - before}ms`
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user