zgl 1 周之前
父節點
當前提交
8655a340eb
共有 1 個文件被更改,包括 8 次插入5 次删除
  1. 8 5
      src/utils/hooks/useCache.ts

+ 8 - 5
src/utils/hooks/useCache.ts

@@ -55,11 +55,14 @@ export function getPageCacheConfig(
 /**
  * Helper to create dynamic product cache config with specific product identifier
  */
-export function getProductCacheConfig(productId: string): PageCacheConfig {
-  return {
-    tags: ["products", `product-${productId}`],
-    life: "hours",
-  };
+// export function getProductCacheConfig(productId: string): PageCacheConfig {
+//   return {
+//     tags: ["products", `product-${productId}`],
+//     life: "hours",
+//   };
+// }
+export function getProductCacheConfig(productId: string): {noCache: boolean} {
+  return {noCache: true};
 }
 
 /**