diff --git a/app/api/user/image-stats/route.ts b/app/api/user/image-stats/route.ts index ec92dc8d4..5bd22831c 100644 --- a/app/api/user/image-stats/route.ts +++ b/app/api/user/image-stats/route.ts @@ -4,8 +4,7 @@ import { generatedImage } from "@/lib/db/schema"; import { eq, sql } from "drizzle-orm"; import { auth } from "@/app/(auth)/auth"; -// 缓存配置:每天中午12点更新(约12小时缓存) -export const revalidate = 43200; // 12小时,单位秒 +export const dynamic = "force-dynamic"; export async function GET() { try { @@ -37,4 +36,3 @@ export async function GET() { ); } } -