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

Stop retrying when rss news feed does not respond #29

Merged
merged 1 commit into from Oct 29, 2016
Merged

Stop retrying when rss news feed does not respond #29

merged 1 commit into from Oct 29, 2016

Conversation

bramley
Copy link
Contributor

@bramley bramley commented Oct 26, 2016

The rss feed at https://www.phplist.org/newslist/feed/ is still unreliable. Currently the code caches the feed content in the php session, but when the feed is not responding then each page load is affected by having to keep retrying.

This change simply caches empty strings when the feed does not respond. The feed won't be tried again until the admin logs-out, therefore all subsequent pages will not display the news sidebar.

Just now the feed was taking more than 35s to respond
screenshot_2016-10-29_08-57-23

The rss feed at https://www.phplist.org/newslist/feed/ is still unreliable. Currently the code caches the feed content in the php session, but when the feed is not responding then each page load is affected by having to keep retrying.

This change simply caches empty strings when the feed does not respond. The feed won't be tried again until the admin logs-out, therefore all subsequent pages will not display the news sidebar.
@michield michield merged commit 9521cdb into phpList:master Oct 29, 2016
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.

None yet

2 participants