mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
@@ -103,7 +103,13 @@ class DiskCache {
|
||||
return this.#instance;
|
||||
}
|
||||
|
||||
this.#instance = storage.create({ dir: this.cachePath, ttl: false, forgiveParseErrors: true });
|
||||
this.#instance = storage.create({
|
||||
dir: this.cachePath,
|
||||
ttl: false,
|
||||
forgiveParseErrors: true,
|
||||
// @ts-ignore
|
||||
maxFileDescriptors: 100,
|
||||
});
|
||||
await this.#instance.init();
|
||||
this.#syncInterval = setInterval(this.#syncCacheEntries.bind(this), DiskCache.SYNC_INTERVAL);
|
||||
return this.#instance;
|
||||
|
Reference in New Issue
Block a user