fix(perf): disable periodic expired item check in node-persist (#4521)

e0edd576539b2812451e007135f8d35005ac0f7a

GoldenglowMeow <55006368+GoldenglowMeow@users.noreply.github.com>

Signed
2 files changed, +2 -0Showing whitespace changes
src/endpoints/characters.js+1 -0
@@ -108,6 +108,7 @@ class DiskCache {
108 dir: this.cachePath,108 dir: this.cachePath,
109 ttl: false,109 ttl: false,
110 forgiveParseErrors: true,110 forgiveParseErrors: true,
111 expiredInterval: 0,
111 // @ts-ignore112 // @ts-ignore
112 maxFileDescriptors: 100,113 maxFileDescriptors: 100,
113 });114 });
src/users.js+1 -0
@@ -511,6 +511,7 @@ export async function initUserStorage(dataRoot) {
511 await storage.init({511 await storage.init({
512 dir: path.join(dataRoot, '_storage'),512 dir: path.join(dataRoot, '_storage'),
513 ttl: false, // Never expire513 ttl: false, // Never expire
514 expiredInterval: 0,
514 });515 });
515516
516 const keys = await getAllUserHandles();517 const keys = await getAllUserHandles();