Typeorm doesn't even use the cache for BaseEntity.* methods

This commit is contained in:
Madeline 2022-09-25 11:10:57 +10:00
parent 544ded68a3
commit 6fa18fdc89

View File

@ -32,14 +32,14 @@ export function initDatabase(): Promise<Connection> {
entities: Object.values(Models).filter((x) => x?.constructor?.name !== "Object" && x?.name), entities: Object.values(Models).filter((x) => x?.constructor?.name !== "Object" && x?.name),
synchronize: type !== "mongodb", synchronize: type !== "mongodb",
logging: false, logging: false,
cache: { // cache: { // cache is used only by query builder and entity manager
duration: 1000 * 30, // duration: 1000 * 30,
type: "redis", // type: "redis",
options: { // options: {
host: "localhost", // host: "localhost",
port: 6379, // port: 6379,
}, // },
}, // },
bigNumberStrings: false, bigNumberStrings: false,
supportBigNumbers: true, supportBigNumbers: true,
name: "default", name: "default",