Skip to content

An AI-powered search engine with a generative UI

fix(cache): remove unnecessary general chat tag invalidations

Yoshiki Miura6e313f29f28c
diff --git a/lib/actions/chat.ts b/lib/actions/chat.ts
index 24e20aff..53709b5e 100644
--- a/lib/actions/chat.ts
+++ b/lib/actions/chat.ts
@@ -90,7 +90,6 @@ export async function createChat(
// Revalidate cache
revalidateTag(`chat-${chatId}`)
- revalidateTag('chat')
return chat
}
@@ -161,7 +160,6 @@ export async function createChatWithFirstMessage(
// Revalidate cache
revalidateTag(`chat-${chatId}`)
- revalidateTag('chat')
return result
}
@@ -214,7 +212,6 @@ export async function deleteChat(chatId: string) {
if (result.success) {
revalidateTag(`chat-${chatId}`)
- revalidateTag('chat')
}
return result