|
|
@@ -61,7 +61,7 @@ export function getPageCacheConfig(
|
|
|
// life: "hours",
|
|
|
// };
|
|
|
// }
|
|
|
-export function getProductCacheConfig(productId: string): {noCache: boolean} {
|
|
|
+export function getProductCacheConfig(): {noCache: boolean} {
|
|
|
return {noCache: true};
|
|
|
}
|
|
|
|
|
|
@@ -98,11 +98,11 @@ export async function cachedProductRequest<
|
|
|
TData = unknown,
|
|
|
TVariables extends OperationVariables = OperationVariables,
|
|
|
>(
|
|
|
- productId: string,
|
|
|
+ // productId: string,
|
|
|
query: DocumentNode,
|
|
|
variables?: TVariables,
|
|
|
): Promise<GraphqlRequestResult<TData>> {
|
|
|
- const config = getProductCacheConfig(productId);
|
|
|
+ const config = getProductCacheConfig();
|
|
|
return graphqlRequest<TData, TVariables>(query, variables, config);
|
|
|
}
|
|
|
|