WordPress.org

Ready to get started?Download WordPress

Forums

links-update-xml causing slowness (14 posts)

  1. lambic
    Member
    Posted 9 years ago #

    My blog was refusing to load this morning, and I tracked it down to the line

    include_one(ABSPATH.WPINC.'links-update-xml.php');

    at the top of my index.php. I added this line to get link updating to work. Should I be doing this in cron instead?

    I've commented out the offending line for now.

  2. timeistight
    Member
    Posted 9 years ago #

    I've noticed a big performance increase since I set up a cron job to run links-update-xml.php. I think the alternate means of running it are only for those who can't use cron.

  3. Where is that line? And in which file?

  4. lambic
    Member
    Posted 9 years ago #

    Can someone post an example of the cron job?

  5. NuclearMoose
    Member
    Posted 9 years ago #

    http://tinyurl.com/5orsy is a Google results page which may help you find a good example of a cron job.

  6. lambic
    Member
    Posted 9 years ago #

    heh, thanks, I know how to set up cron jobs, just not sure what the job should be doing. Is it simply wgetting the links-update-xml.php file?

  7. NuclearMoose
    Member
    Posted 9 years ago #

    Ah, I see, Lambic, sorry. Maybe someone else can use the link then! :)

  8. timeistight
    Member
    Posted 9 years ago #

    /path/to/binaries/php /path/to/my/public/directory
    /wordpress/wp-includes/links-update-xml.php

    set to run hourly.

    Note: http://www.weblogs.com/changes.xml (and consequently http://static.wordpress.org/changes.xml) has been flaky lately, exacerbating performance problems.

  9. Oh! So if the changes.xml files don't work, then nothing will load? That's the conclusion I'm drawing from it, since disabling the plugin puts everything back to normal.

    lambic: The Update Linkroll plugin does that for you without having to edit the index.php file. Then, if the changes.xml file goes down, go into wp-admin and disable the plugin until things go back to normal.

    I guess if I use the plugin, I won't need to run the cron job, correct? If all of this is correct, I'll write a post to elaborate to the best of my knowledge.

    - Bryan

  10. timeistight
    Member
    Posted 9 years ago #

    > I guess if I use the plugin, I won't need to run the cron job, correct? If all of this is correct, I'll write a post to elaborate to the best of my knowledge.

    No you won't, but the plug-in will slow down your site (that is, it seemed to slow mine down).

    The plugin runs links-update-xml.php every time someone hits your page so you're running it more often than you need to if you have a lot of traffic (or not often enough to catch the updates if you don't have a lot of traffic).

  11. Ah, gotcha. So in the case that weblogs.com isn't functioning properly, what do we do?

    /me switches back to utilizing the cron job

  12. timeistight
    Member
    Posted 9 years ago #

    > So in the case that weblogs.com isn't functioning properly, what do we do?

    I have no idea. I think http://blo.gs has some kind of updated blogs list, but I don't know how you'd use it. Blogger has one (http://www.blogger.com/changes.xml) but I think it's only for Blogspot blogs.

    It would be great if pingomatic ran one since WordPress pings "pingomatically".

  13. Yeah, I wish there was one thru Ping-o-matic. podz? Matt? Ryan? NM?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.