Merged in feat/cache-hoteldata-time (pull request #1189)
feat: hoteldata - cache 5 minutes in test env * feat: hoteldata - cache 5 minutes in test env * Removed console log * Renamed variable Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { ApiLang } from "@/constants/languages"
|
||||
import { env } from "@/env/server"
|
||||
import * as api from "@/lib/api"
|
||||
import { dt } from "@/lib/dt"
|
||||
import { badRequestError } from "@/server/errors/trpc"
|
||||
@@ -112,7 +113,7 @@ export const getHotelData = cache(
|
||||
// cache or next.revalidate is permitted
|
||||
cache: undefined,
|
||||
next: {
|
||||
revalidate: 60 * 30, // 30 minutes
|
||||
revalidate: env.CACHE_TIME_HOTELDATA,
|
||||
},
|
||||
},
|
||||
params
|
||||
|
||||
Reference in New Issue
Block a user