Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store Weather details and update it periodically #4

Open
hardikverma22 opened this issue Jul 16, 2024 · 0 comments
Open

Store Weather details and update it periodically #4

hardikverma22 opened this issue Jul 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hardikverma22
Copy link
Owner

Instead of triggering the weather API each time a user visit a plan, trigger the API call only if the delay is 1 hour at least and show last updated time also.
Lets say user visits a plan first time, the server should call the weather api and return the updated weather.
Now if you visit that page again and again, last updated should be checked and if it more than one hour from current time, the api should trigger again. until then one hour stale data should be shown.

@hardikverma22 hardikverma22 added the enhancement New feature or request label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant