Merged in fix/book-785-hotelfilters-cache (pull request #3533)

fix(BOOK-785): fix incorrect cache keys for contact config and hotel filters

* fix(BOOK-785): fix incorrect cache keys for contact config and hotel filters
This commit is contained in:
Linus Flood
2026-02-03 13:18:23 +00:00
parent fbdbd35813
commit 310ad7bc7f
2 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ const getContactConfig = cache(async (lang: Lang) => {
GetContactConfig,
variables,
{
key: `${lang}:contact`,
key: `${lang}:contact_config`,
ttl: "max",
}
)

View File

@@ -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<unknown>(
GetHotelFilters,
{ locale: lang },
{ key: `${lang}:hotel_filters`, ttl: "1d" }
{ key: `${lang}:hotel_filter`, ttl: "1d" }
)
if (!response.data) {