mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Disable TTL on disk cache
This commit is contained in:
@@ -48,8 +48,7 @@ const diskCache = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const cacheDir = path.join(globalThis.DATA_ROOT, '_cache', 'characters');
|
const cacheDir = path.join(globalThis.DATA_ROOT, '_cache', 'characters');
|
||||||
const ttl = 7 * 24 * 60 * 60 * 1000; // 7 days
|
this._instance = storage.create({ dir: cacheDir, ttl: false });
|
||||||
this._instance = storage.create({ dir: cacheDir, ttl: ttl });
|
|
||||||
await this._instance.init();
|
await this._instance.init();
|
||||||
return this._instance;
|
return this._instance;
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user