From 690fb0c75fa2061e177f20b6c89bd832f256752f Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 16 Oct 2024 23:29:43 +0200 Subject: [PATCH] matching: set TTL to 24h --- lib/match-with-schedule-trip.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/match-with-schedule-trip.js b/lib/match-with-schedule-trip.js index 73c473a..33303fb 100644 --- a/lib/match-with-schedule-trip.js +++ b/lib/match-with-schedule-trip.js @@ -403,7 +403,9 @@ const createMatchGtfsRtTripUpdateWithScheduleStopTimes = async (cfg, opt = {}) = const pg = await connectToPostgres(pgOpts) - const cache = await createCache() + const cache = await createCache({ + ttl: 24 * 60 * 60 * 1000, // 24 hours + }) const matchGtfsRtTripUpdateWithScheduleStopTimes = async (tripUpdate) => { const logCtx = {}