Over the past few days I noticed my installation of WordPress 1.5 slowing to a crawl in the administrative section, especially when I try to post a new article. I figured out the problem/issue thanks to some WordPress forum posts.
The issue seems to be with the ShortStat plugin. Disable that, and it’s back to normal.
The depth of the problem comes up when the plugin calls for countries based on IP addresses. It can be fixed by modifying the plugin. Here’s one solution:
If you want to keep wp-shortstat enabled but don’t mind losing the country information you can comment out the following lines in the plugin by prefixing them with //
$coinfo = @file('http://www.hostip.info/api/get.html?ip=' . $ip);
$country_string = explode(':',$coinfo);
$country = trim($country_string);
//$coinfo = @file('http://www.hostip.info/api/get.html?ip=' . $ip);
//$country_string = explode(':',$coinfo);
//$country = trim($country_string);
I’m trying to find an alternate service but there doesn’t seem to be anything out there.
Now, apparently things are supposed to be back up and running, but I haven’t noticed it getting any better until I disabled the ShortStat plugin.
Realistically, you should have some other statistics package available to you anyway. If your host doesn’t offer one, you should consider switching.
[tags]WordPress, 1.5, 1.5.2, slow, post, posting, shortstat, plugin[/tags]