remove useless cache and change maxage

This commit is contained in:
2024-02-26 15:46:45 +01:00
parent fe3c6e88dc
commit 72abb5c35a
2 changed files with 2 additions and 4 deletions

View File

@@ -1,6 +1,4 @@
export default defineCachedEventHandler(async (event) => { export default defineEventHandler(async (event) => {
const config = useRuntimeConfig(event) const config = useRuntimeConfig(event)
return await $fetch(`https://api.lanyard.rest/v1/users/${config.discordUserId}`) return await $fetch(`https://api.lanyard.rest/v1/users/${config.discordUserId}`)
}, {
maxAge: 60 * 3,
}) })

View File

@@ -11,5 +11,5 @@ export default defineCachedEventHandler(async (event) => {
languages, languages,
} }
}, { }, {
maxAge: 60 * 3, maxAge: 60 * 60 * 3, // 3 hours,
}) })