Skip to content

Conversation

@2ndkauboy
Copy link
Contributor

No description provided.

@2ndkauboy
Copy link
Contributor Author

See #20

@Zodiac1978
Copy link
Member

I'm not sure, this is enough.

Using the transient, things do not break at the moment too, but there is no feedback for the user.

So instead of just returning, we need to give some visual feedback for the user. This broken REST API was unseen for moths, maybe years. We need a notice if this bug happens, so what we could act to fix it.

@2ndkauboy 2ndkauboy force-pushed the api-status-code branch 2 times, most recently from c4c4ce0 to 7eddc46 Compare February 5, 2023 21:13
@2ndkauboy
Copy link
Contributor Author

@Zodiac1978 how about the new version? The widget now gets the API data only once a day, unless if the last response was an error, then again after 1 hour. If the request was successful, the meetups PHP array is built. It is then saved into an option. This option is always used, so hopefully the list will never be empty.

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.

3 participants