WordPress.org

Ready to get started?Download WordPress

Forums

Mysterious hit by /wordpress/wp-cron.php?check= (12 posts)

  1. Terryphi
    Member
    Posted 7 years ago #

    I am not using any functions of wp-cron (as far as I know from my options selection) but my server logs show a hit from my server to /wordpress/wp-cron.php?check=bunchofhex every time I visit my weblog. Why is this and what is WordPress trying to do?

    Furthermore, access is forbidden as I ban all visitors with blank user agents via .htaccess file. Everything works as I want it to. Is blocking of wp-cron.php likely to have any detrimental effect on the basic, non-plugin, functioning of WordPress in any way?

  2. Glenn Ansley
    Member
    Posted 7 years ago #

    Have you made any future timestamped posts? I believe wordpress uses the wp-cron.php in implementing scheduled posts.

  3. Terryphi
    Member
    Posted 7 years ago #

    blepoxp: No, I haven't made any future timestamped posts.

  4. Glenn Ansley
    Member
    Posted 7 years ago #

    Are you using any plugins? Lots of plugins use wp_cron (backups, pings, subscription emails, etc)

  5. drmike
    Member
    Posted 7 years ago #

    Wouldn't cron be checking for future posts even if none were made?

  6. Glenn Ansley
    Member
    Posted 7 years ago #

    Hey! That makes sense. Why didn't I think of that?

  7. drmike
    Member
    Posted 7 years ago #

    *chuckle* That's why I get paid the big bucks. :)

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    drmike: No, wp-cron would not check for future posts unless they were made. The scheduler for future posts is a one-time event that's scheduled for the time of the post itself, and it's scheduled when the post is made.

    Terryphi: You need to change your .htaccess so as to allow that wp-cron hit to go through.

    WordPress activates wp-cron whenever it thinks that there is a scheduled event it needs to process. That scheduled event could be anything. In your case, it's probably wanting to process pings and MIME type checking for a post you made. It will do that for every post, that's normal.

    By blocking the call to wp-cron, you're preventing this from happening, and so it will try to do it every single time somebody hits your page. The only way it will ever stop is if you allow it to actually happen and thus allow it to do its job.

    WordPress runs wp-cron as an external webrequest so that it will process the cron stuff in the background, and not in the foreground while the reader waits for it to run.

    There are several reasons that WordPress runs wp-cron, and yes, it is critical. You cannot block it (for very long anyway) without breaking some things.

  9. davidchait
    Member
    Posted 7 years ago #

    I believe things like post-notification to the various tracking sites is done via cron events now. So if you had a ton of posts, and a lot of notification sites on your list, possible you'd get those kicked off frequently.

    Just a thought.

    -d

  10. modifoo
    Member
    Posted 6 years ago #

    Otto et al.

    How do I change the .htaccess file?

    The only reference I could find stated

    <files wp-cron.php>
    Order allow,deny
    Allow from 127.0.0.1
    </files>

    Is that correct?
    And how do I find out which IP I should use? Or is 127.0.0.1 universal for intern? or can I use the actual domain name?

  11. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    modifoo: How you fix the problem depends on what the problem is. You need to start a new thread explaining your issue there.

  12. geofones
    Member
    Posted 6 years ago #

    I have WP2.5 at my site http://geoffjones.com. I am also getting lots of 404 errors of the type /wp-cron.php?check=9fed6b94770b937716a1b57dcf4a31aa from my IP address the site also runs slow. Can anyone help in resolving this issue

Topic Closed

This topic has been closed to new replies.

About this Topic