From f3518244ab03ed1fe899becd6da19c4685a99c55 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Wed, 21 Feb 2024 22:38:07 +0300 Subject: [PATCH] apps/api: reduce TTL GetConfigurations, GetDealers, GetModels --- apps/api/src/proxy/lib/config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/proxy/lib/config.ts b/apps/api/src/proxy/lib/config.ts index e980688..bb939eb 100644 --- a/apps/api/src/proxy/lib/config.ts +++ b/apps/api/src/proxy/lib/config.ts @@ -8,12 +8,12 @@ export const queryTTL: Record = { GetBrands: seconds().fromHours(3), GetCoefficients: seconds().fromHours(12), GetConfiguration: seconds().fromHours(3), - GetConfigurations: seconds().fromHours(3), + GetConfigurations: seconds().fromMinutes(15), GetCurrencyChanges: seconds().fromHours(1), GetDealer: seconds().fromHours(1), GetDealerPerson: seconds().fromHours(1), GetDealerPersons: seconds().fromHours(1), - GetDealers: seconds().fromHours(1), + GetDealers: seconds().fromMinutes(15), GetFuelCards: seconds().fromHours(12), GetGPSBrands: seconds().fromHours(24), GetGPSModels: seconds().fromHours(24), @@ -28,7 +28,7 @@ export const queryTTL: Record = { GetLeaseObjectTypes: seconds().fromHours(24), GetLeasingWithoutKaskoTypes: seconds().fromHours(12), GetModel: seconds().fromHours(3), - GetModels: seconds().fromHours(3), + GetModels: seconds().fromMinutes(15), GetOpportunities: false, GetOpportunity: false, GetOpportunityUrl: seconds().fromHours(12),