summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 11:10:57 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 11:10:57 +1000
commite67f261f9a2a8c88cb9704214b63e8c94a0123aa (patch)
treea10d4b49c39950640399af59aacad719bddd7d1e
parentMostly working user guild settings (diff)
downloadserver-e67f261f9a2a8c88cb9704214b63e8c94a0123aa.tar.xz
Typeorm doesn't even use the cache for BaseEntity.* methods
-rw-r--r--util/src/util/Database.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/src/util/Database.ts b/util/src/util/Database.ts
index 83236b8d..47d1987b 100644
--- a/util/src/util/Database.ts
+++ b/util/src/util/Database.ts
@@ -32,14 +32,14 @@ export function initDatabase(): Promise<Connection> {
 		entities: Object.values(Models).filter((x) => x?.constructor?.name !== "Object" && x?.name),
 		synchronize: type !== "mongodb",
 		logging: false,
-		cache: {
-			duration: 1000 * 30,
-			type: "redis",
-			options: {
-				host: "localhost",
-				port: 6379,
-			},
-		},
+		// cache: { // cache is used only by query builder and entity manager
+			// duration: 1000 * 30,
+			// type: "redis",
+			// options: {
+				// host: "localhost",
+				// port: 6379,
+			// },
+		// },
 		bigNumberStrings: false,
 		supportBigNumbers: true,
 		name: "default",