fix: proper cache keys for refs
This commit is contained in:
@@ -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",
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user