Extend cache time of map data

This commit is contained in:
Liam 2022-10-24 20:17:32 +01:00
parent 8100ff76be
commit a0cdde3ab2

@ -50,7 +50,7 @@ export async function getMapData(hash: string): Promise<MapData | undefined> {
bsr: jsonResponse.id,
mapArt: getLatestMapArt(jsonResponse),
};
await setValue(key, JSON.stringify(json));
await setValue(key, JSON.stringify(json), 86400 * 7); // Expire in a week
console.log(
`[Cache]: Cached BS Map Data for hash ${mapHash} in ${
Date.now() - before