fix: persist public traffic cache rows

This commit is contained in:
chenpei 2026-07-04 15:24:00 +08:00
parent da8a8399e4
commit 50a3f89b01

View File

@ -847,7 +847,8 @@ function persistentTrafficCacheEnabled() {
}
async function ensurePersistentTrafficCacheTable() {
if (persistentCacheTableEnsured || !persistentTrafficCacheEnabled()) return false
if (persistentCacheTableEnsured) return true
if (!persistentTrafficCacheEnabled()) return false
const { prisma } = await import('./prisma')