Forums

[resolved] Can I delete wp-cron.php? (8 posts)

  1. tehinternetz
    Member
    Posted 3 years ago #

    I received an email from my hosting provider, stating that my site is causing other sites on the server to run slow because the wp-cron file is coming up to much and if it continues my hosting will be suspended. Can anybody tell me what the wp-cron.php how I can resolve this issue? here is a copy of the email I received... How can I make it run less? Can it just be deleted?

    It has come to our attention that your hosting account for notsomotivational.com is causing an overload of the shared resources on this server. This, in turn, affects the usage of the server by other customers.

    Unfortunately, we are not able to troubleshoot custom scripting, and therefore, we are not able to provide specific solutions. However, the following files have been accessed the most, and should be a starting point for further troubleshooting. Keep in mind, these files may not be the root cause of this issue.

    -wp-cron.php

    Additionally, other causes to this issue can include, but is not limited to, non-optimized scripts, high traffic, form spamming, etc.

    Please note, if the CPU usage is further exceeded, we reserve the right to suspend the account to ensure the overall health of the server. We appreciate your cooperation in this matter.

    The site is notsomotivational.com

    Thanks.

  2. bplank
    Member
    Posted 3 years ago #

    It's a file that controls actions for the WordPress installation. It updates the data in your SQL database every day or every hour, depending on how it's set up.

    Try the WP-Crontrol plug-in. http://www.ditii.com/2008/01/08/wp-crontrol-wordpress-plugin/

    Or WP-Cron plug-in: http://skippy.net/plugin-wp-cron

    Either one can allow you to slow the amount of updates/queries to your SQL server and should aleviate the problem. Tell your host that you're attempting to resolve the matter, so they know you're trying to fix it.

  3. tehinternetz
    Member
    Posted 3 years ago #

    I will try this... thanks!

  4. tehinternetz
    Member
    Posted 3 years ago #

    I dont think it did anything, can I just delete it or will it mess everything up?

  5. Otto
    Tech Ninja
    Posted 3 years ago #

    If you remove the wp-cron.php, then future posting and pings will not work. Also, your blog will get progressively slower and slower as time goes on, since it's continually trying to activate the cron job.

    The better way is to figure out why cron is being called all the time. WP-Crontrol will show you what jobs are pending and from there you can figure out what they are doing and/or remove them.

    Also, consider installing WP-Super-Cache if your host is complaining about too many queries. Just because wp-cron is hit a lot doesn't mean that it's the source of the problems.

    However, in the long run, if your host is complaining about high CPU usage, then they've most likely simply oversold your server and are just making it your problem. I'd start looking for another host, immediately.

  6. tehinternetz
    Member
    Posted 3 years ago #

    ok. thanks for the info!

  7. baal666
    Member
    Posted 3 years ago #

    On the same subject, my web site is really really slow, and when I access the wp-cron.php manually, it makes it faster only temporary. What can explain the problem?

    Someone told me to run this script:

    <?php
    $argyle = fsockopen( 'example.com', 80, $errno, $errstr, 0.01 );
    if ( $argyle ) {
    fputs( $argyle, "GET /wp-cron.php HTTP/1.0\r\n"
    	. "Host: lelectronlibre.net\r\n\r\n" );
    echo "Success sending the GET.\n";
    } else {
    echo "Error: $errstr ($errno)\n";
    }
    ?>

    and here is what I got as a message:

    Error: Connection timed out (110)

    What can be wrong?

    It takes like 20 to 60 seconds to post a text... And sometimes it simply timeout. I even have trouble to load some pages and get a blank screen...

    If anyone can help...
    Thanks

  8. baal666
    Member
    Posted 3 years ago #

    Ah damn it... I tried to arrange my web site to make it faster and now here is the result: when someone post a comment he/she gets a blank page; the comment is there, but he/she has to reload the page.

    Same thing when one tries to load any page: a blank page. Needs to reload, always.

    Maybe it has something to do with the fact that I tried to use

    define(ENABLE_CACHE, true);

    in wp-config? The thing is I deleted that and the problem is still there...

    Please help,

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.