Perf: enable undici cache store's loose mode

This commit is contained in:
SukkaW
2025-04-06 20:51:53 +08:00
parent 1211557888
commit cc868a93a8
3 changed files with 8 additions and 6 deletions

View File

@@ -118,6 +118,7 @@ setGlobalDispatcher(agent.compose(
}),
interceptors.cache({
store: new BetterSqlite3CacheStore({
loose: true,
location: path.join(CACHE_DIR, 'undici-better-sqlite3-cache-store.db'),
maxEntrySize: 1024 * 1024 * 100 // 100 MiB
}),