Limit cache read parallelism #3747

be7750d6fd056d7451c36f602b8ce7cdde94cfbe

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +7 -1Ignore whitespace
src/endpoints/characters.js+7 -1
@@ -103,7 +103,13 @@ class DiskCache {
103103 return this.#instance;
104104 }
105105
106106 this.#instance = storage.create({ dir: this.cachePath, ttl: false, forgiveParseErrors: true });
107+ dir: this.cachePath,
108+ ttl: false,
109+ forgiveParseErrors: true,
110+ // @ts-ignore
111+ maxFileDescriptors: 100,
112+ });
107113 await this.#instance.init();
108114 this.#syncInterval = setInterval(this.#syncCacheEntries.bind(this), DiskCache.SYNC_INTERVAL);
109115 return this.#instance;