Increase cache clean-up interval

50340103dea13e19a42ba6d3a11a0431b0a7d226

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

1 files changed, +4 -1Ignore whitespace
src/endpoints/characters.js+4 -1
@@ -43,7 +43,7 @@ class DiskCache {
4343 static DIRECTORY = 'characters';
4444
4545 /** @type {number} */
4646 static REMOVAL_INTERVAL = 5 * 60 * 1000;
4747
4848 /** @type {import('node-persist').LocalStorage} */
4949 #instance;
@@ -78,6 +78,9 @@ class DiskCache {
7878 * @returns {Promise<void>}
7979 */
8080 async #removeCacheEntries() {
81+ // TODO: consider running this.verify() for a user instead as getting all cache keys
82+ // is a heavy operation, since it requires to read all files in the disk cache.
83+
8184 try {
8285 if (!useDiskCache || this.removalQueue.length === 0) {
8386 return;