Skip to content

Commit

Permalink
matching: set TTL to 24h
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Oct 16, 2024
1 parent 9c2fc7e commit 690fb0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/match-with-schedule-trip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 690fb0c

Please sign in to comment.