Skip to content

Commit 490d9f5

Browse files
authored
reduce default cache limits (#83)
* red * Bump version from 4.51.1 to 4.52.0
1 parent 2561ce8 commit 490d9f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uncivserver.xyz",
3-
"version": "4.51.1",
3+
"version": "4.52.0",
44
"description": "An Open Source, Free to Play, Unciv Multiplayer Server written in Javascript",
55
"author": "Md. Touhidur Rahman",
66
"license": "BSD-3-Clause",

src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export const MAX_CONTENT_LENGTH = bytes.parse('2mb')!;
2020
export const REDIS_DEFAULT_URL = '0.0.0.0:6379';
2121

2222
// Cache
23-
export const CACHE_MAX_ITEMS = 10_000;
24-
export const CACHE_MAX_SIZE = bytes.parse('150mb');
23+
export const CACHE_MAX_ITEMS = 5_000;
24+
export const CACHE_MAX_SIZE = bytes.parse('100mb');
2525
export const CACHE_TTL_SECONDS = 30 * 60;
2626
export const CACHE_TTL_MILLISECONDS = CACHE_TTL_SECONDS * 1000;
2727
export const CACHE_TTL_CHECK_INTERVAL_SECONDS = 60;

0 commit comments

Comments
 (0)