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

@@ -10,7 +10,7 @@ import {
router,
} from "@/server/trpc"
import { generateTag } from "@/utils/generateTag"
import { generateRefsResponseTag } from "@/utils/generateTag"
import { getCityPagesInput } from "./input"
import {
@@ -51,7 +51,7 @@ export const destinationCountryPageQueryRouter = router({
GetDestinationCountryPageRefs,
{ locale: lang, uid },
{
key: generateTag(lang, uid),
key: generateRefsResponseTag(lang, uid),
ttl: "max",
}
)