Lower cache time to 1 hour

This commit is contained in:
Justin Edmund 2024-08-06 00:49:41 -07:00
parent c298e8cde5
commit a8aedee587
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ import GiantBombAPI from 'giantbombing-api'
import type { RequestHandler } from './$types'
const CACHE_TTL = 60 * 60 * 24 * 7
const CACHE_TTL = 60 * 60 // 1 hour
const giantBombAPI = new GiantBombAPI({
apiKey: process.env.GIANTBOMB_API_KEY,

View file

@ -17,7 +17,7 @@ const {
getUserPlayedTime
} = require('psn-api')
const CACHE_TTL = 60 * 60 * 24
const CACHE_TTL = 60 * 60 // 1 hour
const PSN_NPSSO_TOKEN = process.env.PSN_NPSSO_TOKEN
const PSN_ID = '1275018559140296533'

View file

@ -5,7 +5,7 @@ import SteamAPI, { Game, GameInfo, GameInfoExtended, UserPlaytime } from 'steama
import type { RequestHandler } from './$types'
const CACHE_TTL = 60 * 60 * 24 // 24 hours in seconds
const CACHE_TTL = 60 * 60 // 1 hour
const STEAM_ID = '76561197997279808'
export const GET: RequestHandler = async ({ params }) => {