From b43d166b2ed26d056cdbf3b94ac0c0b11a8f6e3c Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 6 Oct 2025 21:59:19 +0300 Subject: [PATCH] Update cache proxy configuration for query time-to-live settings - Increased the time-to-live for `GetCustomer`, `GetOrder`, `GetService`, and `GetSlot` queries to 24 hours, enhancing cache efficiency and performance. - Maintained the existing setting for `GetSubscriptions`, which remains at 12 hours. --- apps/cache-proxy/src/proxy/lib/config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/cache-proxy/src/proxy/lib/config.ts b/apps/cache-proxy/src/proxy/lib/config.ts index 7e80217..e3b88f3 100644 --- a/apps/cache-proxy/src/proxy/lib/config.ts +++ b/apps/cache-proxy/src/proxy/lib/config.ts @@ -2,5 +2,8 @@ import { seconds } from 'src/utils/time'; export const queryTTL: Record = { Login: false, - GetSubscriptions: seconds().fromHours(12), + GetCustomer: seconds().fromHours(24), + GetOrder: seconds().fromHours(24), + GetService: seconds().fromHours(24), + GetSlot: seconds().fromHours(24), };