{"action":"opened","issue":{"url":"https://api.github.com/repos/Freemius/wordpress-sdk/issues/19","labels_url":"https://api.github.com/repos/Freemius/wordpress-sdk/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Freemius/wordpress-sdk/issues/19/comments","events_url":"https://api.github.com/repos/Freemius/wordpress-sdk/issues/19/events","html_url":"https://github.com/Freemius/wordpress-sdk/issues/19","id":128023573,"number":19,"title":"If the API is down during a background sync (once in 24 hours) and there are N freemius powered plugins, it will invoke N failed requests.","user":{"login":"vovafeldman","id":6830121,"avatar_url":"https://avatars.githubusercontent.com/u/6830121?v=3","gravatar_id":"","url":"https://api.github.com/users/vovafeldman","html_url":"https://github.com/vovafeldman","followers_url":"https://api.github.com/users/vovafeldman/followers","following_url":"https://api.github.com/users/vovafeldman/following{/other_user}","gists_url":"https://api.github.com/users/vovafeldman/gists{/gist_id}","starred_url":"https://api.github.com/users/vovafeldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovafeldman/subscriptions","organizations_url":"https://api.github.com/users/vovafeldman/orgs","repos_url":"https://api.github.com/users/vovafeldman/repos","events_url":"https://api.github.com/users/vovafeldman/events{/privacy}","received_events_url":"https://api.github.com/users/vovafeldman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-21T21:29:22Z","updated_at":"2016-01-21T21:29:22Z","closed_at":null,"body":"It also shows N error messages instead of only one message:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6830121/12494949/f14ffcd8-c05a-11e5-9bc2-985f084c9547.png)\r\n\r\nReference: http://community.rtcamp.com/t/freemius-crashing-entire-website/\r\n\r\n*The API connection is going crazy. Look at those curl timeouts, 60 seconds per license? 31 rtcamp plugins, 31 * 60 seconds = HOLY SHIT. Site's completely unresponsive since Freemius API server is down or unresponsive. I'm going through and removing all the license checks from the PHP right now.*\r\n\r\n**Solution:**\r\n- If the API is down there should only be one error message shown for all Freemius powered plugins.\r\n- The connectivity test should be cached to prevent from the server just waiting for timeouts."}}