From 8a6f8233942aa80f057df4c7f634bd78bef3611a Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Thu, 16 Oct 2025 18:51:27 +1100 Subject: [PATCH] Remove upstash cache --- lib/utils/useDatabase.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/utils/useDatabase.ts b/lib/utils/useDatabase.ts index a36f675..7104fd3 100644 --- a/lib/utils/useDatabase.ts +++ b/lib/utils/useDatabase.ts @@ -1,5 +1,4 @@ import { sql } from "drizzle-orm"; -import { upstashCache } from "drizzle-orm/cache/upstash"; import { drizzle } from "drizzle-orm/node-postgres"; import { err, ok, type Result } from "neverthrow"; import { cache } from "react"; @@ -34,11 +33,6 @@ export async function getDatabaseForOwner(ownerId: string): Promise { const sslMode = process.env.DATABASE_SSL === "true" ? "?sslmode=require" : ""; return drizzle(`${process.env.DATABASE_URL}/${databaseName}${sslMode}`, { - cache: upstashCache({ - url: process.env.UPSTASH_REDIS_REST_URL!, - token: process.env.UPSTASH_REDIS_REST_TOKEN!, - global: true, - }), schema, }); }