fix(perf): disable periodic expired item check in node-persist (#4521)
Signed| @@ -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-ignore | 112 | // @ts-ignore |
| 112 | maxFileDescriptors: 100, | 113 | maxFileDescriptors: 100, |
| 113 | }); | 114 | }); |
| @@ -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 expire | 513 | ttl: false, // Never expire |
| 514 | expiredInterval: 0, | ||
| 514 | }); | 515 | }); |
| 515 | 516 | ||
| 516 | const keys = await getAllUserHandles(); | 517 | const keys = await getAllUserHandles(); |