Skip to content

/weather endpoint has no caching, so repeated searches re-hit OpenWeatherMap every time #263

Description

@Muskankr

Searching the same city twice in a row (or by multiple users at once) fires a fresh API call each time instead of reusing a recent result. On OpenWeatherMap's free tier this risks hitting rate limits quickly. Add a short-lived cache (e.g. 5–10 min per city) using an in-memory dict or flask-caching.

Metadata

Metadata

Assignees

Labels

featureAdd new feature

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions