For data which changes relatively slowly it might be beneficial in terms of performance to introduce a cache.
The time-to-live (TTL) for the cache should be configured to a suitable value, probably in the range of minutes.
It is important not to cache requests for leaderboard-type applications in order to avoid unnecessary delays for more mapathon-like use cases.
Decisions:
Cache all stats requests with hashtag hotosm-project-* and start and end dates of null.
For data which changes relatively slowly it might be beneficial in terms of performance to introduce a cache. The time-to-live (TTL) for the cache should be configured to a suitable value, probably in the range of minutes.
It is important not to cache requests for leaderboard-type applications in order to avoid unnecessary delays for more mapathon-like use cases.
Decisions:
hotosm-project-*
and start and end dates ofnull
.