Disable TTL on disk cache

1a2c54ce39f6dc9e260e75b4c221a251106faa10

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

1 files changed, +1 -2Showing whitespace changes
src/endpoints/characters.js+1 -2
@@ -48,8 +48,7 @@ const diskCache = {
48 }48 }
4949
50 const cacheDir = path.join(globalThis.DATA_ROOT, '_cache', 'characters');50 const cacheDir = path.join(globalThis.DATA_ROOT, '_cache', 'characters');
51 const ttl = 7 * 24 * 60 * 60 * 1000; // 7 days51 this._instance = storage.create({ dir: cacheDir, ttl: false });
52 this._instance = storage.create({ dir: cacheDir, ttl: ttl });
53 await this._instance.init();52 await this._instance.init();
54 return this._instance;53 return this._instance;
55 },54 },