fix: proper cache keys for refs

This commit is contained in:
Michael Zetterberg
2025-03-24 16:32:43 +01:00
parent 0e2192be0f
commit d236a6e8fd
8 changed files with 37 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ import { request } from "@/lib/graphql/request"
import { notFound } from "@/server/errors/trpc"
import { contentStackUidWithServiceProcedure, router } from "@/server/trpc"
import { generateTag } from "@/utils/generateTag"
import { generateRefsResponseTag } from "@/utils/generateTag"
import { getCityByCityIdentifier } from "../../hotels/utils"
import {
@@ -46,7 +46,7 @@ export const destinationCityPageQueryRouter = router({
GetDestinationCityPageRefs,
{ locale: lang, uid },
{
key: generateTag(lang, uid),
key: generateRefsResponseTag(lang, uid),
ttl: "max",
}
)