From bac0228d21b7195065e9cddcc327ae33659c7bcc Mon Sep 17 00:00:00 2001 From: dujinkim Date: Sun, 1 Jun 2025 13:52:21 +0000 Subject: (대표님) 20250601까지 작업사항 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/vendor-document-list/service.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/vendor-document-list/service.ts') 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}`], + // } + // )(); } -- cgit v1.2.3