feat: cost optimize, increase cache

This commit is contained in:
anuraghazra
2024-10-11 23:07:05 +05:30
parent 37bf205914
commit cdc6ad1eaf
6 changed files with 25 additions and 48 deletions
+11 -1
View File
@@ -449,7 +449,11 @@ const TWO_HOURS = 7200;
const FOUR_HOURS = 14400;
const SIX_HOURS = 21600;
const EIGHT_HOURS = 28800;
const TWELVE_HOURS = 43200;
const ONE_DAY = 86400;
const TWO_DAY = ONE_DAY * 2;
const SIX_DAY = ONE_DAY * 6;
const TEN_DAY = ONE_DAY * 10;
const CONSTANTS = {
ONE_MINUTE,
@@ -461,8 +465,14 @@ const CONSTANTS = {
FOUR_HOURS,
SIX_HOURS,
EIGHT_HOURS,
TWELVE_HOURS,
ONE_DAY,
CARD_CACHE_SECONDS: SIX_HOURS,
TWO_DAY,
SIX_DAY,
TEN_DAY,
CARD_CACHE_SECONDS: ONE_DAY,
TOP_LANGS_CACHE_SECONDS: SIX_DAY,
PIN_CARD_CACHE_SECONDS: TEN_DAY,
ERROR_CACHE_SECONDS: TEN_MINUTES,
};