summaryrefslogtreecommitdiff
path: root/lib/vendor-document-list/service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vendor-document-list/service.ts')
-rw-r--r--lib/vendor-document-list/service.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/vendor-document-list/service.ts b/lib/vendor-document-list/service.ts
index 75c9b6cd..356bc792 100644
--- a/lib/vendor-document-list/service.ts
+++ b/lib/vendor-document-list/service.ts
@@ -21,8 +21,8 @@ import { revalidateTag, unstable_noStore ,revalidatePath} from "next/cache";
*/
export async function getVendorDocuments(input: GetVendorDcoumentsSchema, id: number) {
- return unstable_cache(
- async () => {
+ // return unstable_cache(
+ // async () => {
try {
const offset = (input.page - 1) * input.perPage;
@@ -69,13 +69,13 @@ export async function getVendorDocuments(input: GetVendorDcoumentsSchema, id: nu
// 에러 발생 시 디폴트
return { data: [], pageCount: 0 };
}
- },
- [JSON.stringify(input), String(id)], // 캐싱 키
- {
- revalidate: 3600,
- tags: [`vendor-docuemnt-list-${id}`],
- }
- )();
+ // },
+ // [JSON.stringify(input), String(id)], // 캐싱 키
+ // {
+ // revalidate: 3600,
+ // tags: [`vendor-docuemnt-list-${id}`],
+ // }
+ // )();
}