From c044c208df5c818eb610aa591ccbf838bfef7d02 Mon Sep 17 00:00:00 2001 From: Angelo Reale <12191809+angeloreale@users.noreply.github.com> Date: Sat, 24 Aug 2024 01:28:05 +0100 Subject: [PATCH] ar(feat) [DPCP-80] cold start --- lib/model/interfaces/get-public-listings-iface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/interfaces/get-public-listings-iface.ts b/lib/model/interfaces/get-public-listings-iface.ts index 0917d67c..2b163d8a 100644 --- a/lib/model/interfaces/get-public-listings-iface.ts +++ b/lib/model/interfaces/get-public-listings-iface.ts @@ -7,7 +7,7 @@ const getPublicListings = async ({ page = 0, offset = 0, limit = PAGE_SIZE, filt const adaptQuery: any = { skip: page * (limit + offset), take: limit, - cacheStrategy: { ttl: 90 }, + cacheStrategy: { ttl: 90, swr: 60 * 60 * 24 * 7 }, }; if (filters?.length) {