mirror of
https://github.com/SukkaW/Surge.git
synced 2026-09-12 18:44:36 +08:00
Perf/Chore: increase cache store maxCount
This commit is contained in:
@@ -171,7 +171,7 @@ const agent = new Agent({
|
|||||||
store: new BetterSqlite3CacheStore({
|
store: new BetterSqlite3CacheStore({
|
||||||
loose: true,
|
loose: true,
|
||||||
location: path.join(CACHE_DIR, 'undici-better-sqlite3-cache-store.db'),
|
location: path.join(CACHE_DIR, 'undici-better-sqlite3-cache-store.db'),
|
||||||
maxCount: 128,
|
maxCount: 256,
|
||||||
maxEntrySize: 1024 * 1024 * 100, // 100 MiB
|
maxEntrySize: 1024 * 1024 * 100, // 100 MiB
|
||||||
revalidationRetention: 7 * 24 * 60 * 60 * 1000 // 7 days
|
revalidationRetention: 7 * 24 * 60 * 60 * 1000 // 7 days
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user