diff --git a/packages/trpc/lib/routers/contentstack/base/query.ts b/packages/trpc/lib/routers/contentstack/base/query.ts index 31986144d..128eddf4c 100644 --- a/packages/trpc/lib/routers/contentstack/base/query.ts +++ b/packages/trpc/lib/routers/contentstack/base/query.ts @@ -46,7 +46,7 @@ const getContactConfig = cache(async (lang: Lang) => { GetContactConfig, variables, { - key: `${lang}:contact`, + key: `${lang}:contact_config`, ttl: "max", } ) diff --git a/packages/trpc/lib/routers/hotels/filters/utils.ts b/packages/trpc/lib/routers/hotels/filters/utils.ts index 5c509944b..56f0d4e96 100644 --- a/packages/trpc/lib/routers/hotels/filters/utils.ts +++ b/packages/trpc/lib/routers/hotels/filters/utils.ts @@ -12,7 +12,7 @@ import type { FilterType, HotelFilter } from "./output" export async function getHotelFilters(lang: Lang) { const cacheClient = await getCacheClient() - const cacheKey = `${lang}:getHotelFilters` + const cacheKey = `${lang}:hotel_filter:outer` return await cacheClient.cacheOrGet( cacheKey, @@ -27,7 +27,7 @@ export async function getHotelFilters(lang: Lang) { const response = await request( GetHotelFilters, { locale: lang }, - { key: `${lang}:hotel_filters`, ttl: "1d" } + { key: `${lang}:hotel_filter`, ttl: "1d" } ) if (!response.data) {