• Resolved tehinternetz

    (@tehinternetz)


    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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. https://www.ditii.com/2008/01/08/wp-crontrol-wordpress-plugin/

    Or WP-Cron plug-in: https://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.

    Thread Starter tehinternetz

    (@tehinternetz)

    I will try this… thanks!

    Thread Starter tehinternetz

    (@tehinternetz)

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

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    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.

    Thread Starter tehinternetz

    (@tehinternetz)

    ok. thanks for the info!

    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

    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!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can I delete wp-cron.php?’ is closed to new replies.