Timeouts slow site
-
I had an instance where my site slowed to a halt and it was the Shareaholic plugin:
- curl_multi_exec() /www/wp-content/plugins/shareaholic/lib/social-share-counts/curl_multi_share_count.php:71
- get_counts() /www/wp-content/plugins/shareaholic/public.php:444
In reviewing that code, I see a timeout set, but not a catch in the event the remote site can not be reached nor resolved. I think a try catch would improve this and handle the error more gracefully. I also noticed that you’re utilizing CURL when WordPress has its own API method:
Really love this plugin, otherwise.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Timeouts slow site’ is closed to new replies.