Lower cache time to 1 hour
This commit is contained in:
parent
c298e8cde5
commit
a8aedee587
3 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ import GiantBombAPI from 'giantbombing-api'
|
||||||
|
|
||||||
import type { RequestHandler } from './$types'
|
import type { RequestHandler } from './$types'
|
||||||
|
|
||||||
const CACHE_TTL = 60 * 60 * 24 * 7
|
const CACHE_TTL = 60 * 60 // 1 hour
|
||||||
|
|
||||||
const giantBombAPI = new GiantBombAPI({
|
const giantBombAPI = new GiantBombAPI({
|
||||||
apiKey: process.env.GIANTBOMB_API_KEY,
|
apiKey: process.env.GIANTBOMB_API_KEY,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ const {
|
||||||
getUserPlayedTime
|
getUserPlayedTime
|
||||||
} = require('psn-api')
|
} = 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_NPSSO_TOKEN = process.env.PSN_NPSSO_TOKEN
|
||||||
const PSN_ID = '1275018559140296533'
|
const PSN_ID = '1275018559140296533'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import SteamAPI, { Game, GameInfo, GameInfoExtended, UserPlaytime } from 'steama
|
||||||
|
|
||||||
import type { RequestHandler } from './$types'
|
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'
|
const STEAM_ID = '76561197997279808'
|
||||||
|
|
||||||
export const GET: RequestHandler = async ({ params }) => {
|
export const GET: RequestHandler = async ({ params }) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue