Skip to content

Commit 43f1fda

Browse files
committed
extended cache
1 parent c7b8cdb commit 43f1fda

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/utils/controllerHelpers.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,11 @@ const sendValidationError = (res, errors) => {
5555
const latestDateCache = new Map();
5656
const CACHE_TTL = 60 * 60 * 1000; // 1 hour in milliseconds
5757

58-
// Cache for query results to eliminate bimodal performance
5958
const queryResultCache = new Map();
60-
const QUERY_CACHE_TTL = 10 * 60 * 1000; // 10 minutes for query results
59+
const QUERY_CACHE_TTL = 60 * 60 * 1000; // 1 hour in milliseconds
6160

6261
// Cache size limit
63-
const MAX_CACHE_SIZE = 3000; // Maximum number of cache entries
62+
const MAX_CACHE_SIZE = 5000; // Maximum number of cache entries
6463

6564
/**
6665
* Clean up cache when it exceeds size limit (LRU-style cleanup)

0 commit comments

Comments
 (0)