zgl 1 hafta önce
ebeveyn
işleme
8655a340eb
1 değiştirilmiş dosya ile 8 ekleme ve 5 silme
  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};
 }
 
 /**