Skip to content

Commit 266c38a

Browse files
authored
Merge pull request #189 from techulus/main
Remove upstash cache
2 parents e59af84 + 8a6f823 commit 266c38a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/utils/useDatabase.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { sql } from "drizzle-orm";
2-
import { upstashCache } from "drizzle-orm/cache/upstash";
32
import { drizzle } from "drizzle-orm/node-postgres";
43
import { err, ok, type Result } from "neverthrow";
54
import { cache } from "react";
@@ -34,11 +33,6 @@ export async function getDatabaseForOwner(ownerId: string): Promise<Database> {
3433
const sslMode = process.env.DATABASE_SSL === "true" ? "?sslmode=require" : "";
3534

3635
return drizzle(`${process.env.DATABASE_URL}/${databaseName}${sslMode}`, {
37-
cache: upstashCache({
38-
url: process.env.UPSTASH_REDIS_REST_URL!,
39-
token: process.env.UPSTASH_REDIS_REST_TOKEN!,
40-
global: true,
41-
}),
4236
schema,
4337
});
4438
}

0 commit comments

Comments
 (0)