From 419d96aedc09883845de26fbd896a14779cda34f Mon Sep 17 00:00:00 2001 From: Christopher Mayor Date: Mon, 27 Apr 2026 12:01:42 -0700 Subject: [PATCH] fix: disable drizzle query cache (NoopCache) to fix queryWithCache bug --- src/lib/db/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/db/index.ts b/src/lib/db/index.ts index 5407054..c9e0d28 100644 --- a/src/lib/db/index.ts +++ b/src/lib/db/index.ts @@ -1,5 +1,6 @@ import { drizzle } from "drizzle-orm/postgres-js"; import postgres from "postgres"; +import { NoopCache } from "drizzle-orm/cache/core/cache"; import * as schema from "./schema"; const connectionString = process.env.DATABASE_URL!; @@ -12,4 +13,4 @@ const client = postgres(connectionString, { console.log("[postgres.js notice]", notice); }, }); -export const db = drizzle(client, { schema, logger: true }); +export const db = drizzle(client, { schema, logger: true, cache: new NoopCache() });