WordPress 1.5 Slow Posting

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[0]);
$country = trim($country_string[1]);


//$coinfo = @file('http://www.hostip.info/api/get.html?ip=' . $ip);
//$country_string = explode(':',$coinfo[0]);
//$country = trim($country_string[1]);

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]

Nate Ritter lives in the Pacific Northwest (U.S.), popularized the #hashtag and creates web applications for a living. He also does miles and point hacking to enable cheap travel for his family. More here →

2 Comments on "WordPress 1.5 Slow Posting"

  1. I’ve tried a couple of different WP stats plugins before, but I always end up turning them off. I think the problem for me is that you end up gathering a *lot* of information. The tables for the stats grow to be huge, and MySQL starts getting bogged down trying to collate the information.

    I’ve fallen back to using analog and Google Analytics. But I really wish that reinvigorate.net was up and running again. Based on what I’ve read on the re_ blog, it’s going to kick some serious butt when it comes back online.

  2. nate says:

    Dougal, again, thanks for the comments! It’s great to have some conversation going.

    I’m glad to hear of your experience with stats plugins. I find myself just using my awstats package along with the Google Analytics you mentioned.

    Never heard of reinvigorate.net, so I’m excited to see something new come out. Thanks for the tip.

More in Development, General, Techie
WordPress 2.0: To Upgrade or Not?

I've been considering upgrading this blog from WordPress 1.5.2 to WordPress 2.0. Apparently, it's a bit more than just installing...