Skip to content

Optimize revalidate of feed detail pages #67

@Alessandro100

Description

@Alessandro100

In web-app we expose an endpoint 'api/revalidate' which when called will manually invalidate the server side cache. With this endpoint you can invalidate by

all feeds
gbfs feeds
gtfs feeds
gtfs rt feeds
specific feeds (by id)
End goal: Refresh the cached server feeds when there are changes in the feeds

Current scenario
A cron job is run from Vercel once a day which invalidates all cache.

Ideal scenario
We should only invalidate the cache of the feeds that have been updated with the most precision as possible. Ex: If overnight feeds mdb-2, mdb-5, mdb-1992 were updated, only invalidate those

To discuss

  • For GBFS feeds, what are the freshness rules
  • How to determine for GTFS RT

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceImproves the speed or efficiency of the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions