feat: update queryTTL for customer-related queries
- Added 12-hour TTL for GetCustomer and GetSubscriptionSettings queries to improve caching strategy. - Ensured other queries remain unchanged with their TTL set to false.
This commit is contained in:
parent
6a21f5911e
commit
03145534a1
@ -1,4 +1,7 @@
|
||||
import { seconds } from 'src/utils/time';
|
||||
|
||||
export const queryTTL: Record<string, number | false> = {
|
||||
GetCustomer: seconds().fromHours(12),
|
||||
GetCustomers: false,
|
||||
GetInvited: false,
|
||||
GetInvitedBy: false,
|
||||
@ -8,5 +11,6 @@ export const queryTTL: Record<string, number | false> = {
|
||||
GetSlotsOrders: false,
|
||||
GetSubscriptionHistory: false,
|
||||
GetSubscriptions: false,
|
||||
GetSubscriptionSettings: seconds().fromHours(12),
|
||||
Login: false,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user