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

e0edd576539b2812451e007135f8d35005ac0f7a

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

Signed
2 files changed, +2 -0Ignore whitespace
src/endpoints/characters.js+1 -0
@@ -108,6 +108,7 @@ class DiskCache {
108108 dir: this.cachePath,
109109 ttl: false,
110110 forgiveParseErrors: true,
111+ expiredInterval: 0,
111112 // @ts-ignore
112113 maxFileDescriptors: 100,
113114 });
src/users.js+1 -0
@@ -511,6 +511,7 @@ export async function initUserStorage(dataRoot) {
511511 await storage.init({
512512 dir: path.join(dataRoot, '_storage'),
513513 ttl: false, // Never expire
514+ expiredInterval: 0,
514515 });
515516
516517 const keys = await getAllUserHandles();