Skip to content

Conversation

@maltehuebner
Copy link
Contributor

Summary

  • Increase Redis station cache TTL from 3 seconds to 300 seconds (5 minutes)

Context

Station metadata (codes, coordinates, providers) changes very rarely. A 3-second TTL means the station list is reloaded from the database on nearly every request, defeating the purpose of caching. A 5-minute TTL significantly reduces database load while still picking up new stations within a reasonable timeframe.

Test plan

  • Verify station lookups still work after the change
  • Monitor Redis cache hit rate

🤖 Generated with Claude Code

Stations rarely change, so a 3-second TTL caused unnecessary database
queries under load. 300 seconds is a reasonable trade-off between
freshness and performance.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant