Forums

Can I disable Cron job? (18 posts)

  1. auntiebiotic
    Member
    Posted 2 years ago #

    I have been offline all day yesterday, my host has just replied with the following:

    Ok...the problem is that you've enabled Cron Jobs on your wordpress posts.
    This drains the server processes and shuts down your site automatically. You
    must have enabled this at some point. Are you aware of this?

    Is there someway of disabling this?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    Among other things, WP-Cron handles the publishing of future posts.

    Unless you have something more installed, such as a plugin, and your host is automatically 'shutting down your site' then I'd suggest moving to a more accomodating host.

  3. auntiebiotic
    Member
    Posted 2 years ago #

    Thx for reply, can you please explain further here so I can post to my web host cause I have been offline all day and they are blaming me saying saying I should check my settings and turn it off.

    I have tried to read about cron job but would be helpful in laymans terms. Are you saying it cannot be turn off?

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    Are you saying it cannot be turn off?

    Good question. Looks like it can be turned off with this added to your wp-config.php

    define('DISABLE_WP_CRON', true)

    Related;
    http://core.trac.wordpress.org/ticket/9005

  5. MichaelH
    Volunteer
    Posted 2 years ago #

    Also might install the http://wordpress.org/extend/plugins/core-control/ plugin as it has a section to see all the cron processes you have...

  6. auntiebiotic
    Member
    Posted 2 years ago #

    thank you, thankyou, this could avert a divorce between my self and the web host. If I do turn off what am i messing out on if you know what I mean>

  7. auntiebiotic
    Member
    Posted 2 years ago #

    thanks for link but the following:
    Please Note: Core Control is mainly a Developers plugin, However it can be used by end users alike, Just realise, That novice users are not the initial target audience, and as such, this plugin (and its modules) may be more technical aimed.

    this is scary stuff and may make things worse

  8. MichaelH
    Volunteer
    Posted 2 years ago #

    Don't be scared ;) You are just interested in the info it provides.

    And you have backups, correct?

  9. auntiebiotic
    Member
    Posted 2 years ago #

    Cheer but Im so stressed I dare not go near plugin. will your define('DISABLE_WP_CRON', true) cure problem?

  10. MichaelH
    Volunteer
    Posted 2 years ago #

    Possibly, but I can assure you other hosts have no problem with WordPress.

  11. auntiebiotic
    Member
    Posted 2 years ago #

    I have installed cron plugin three options to run task now but no options to stop

  12. auntiebiotic
    Member
    Posted 2 years ago #

    Can I just place
    define('DISABLE_WP_CRON', true) anywhere in page? wp-config.php

  13. auntiebiotic
    Member
    Posted 2 years ago #

    just added above and now error message:
    Parse error: syntax error, unexpected T_STRING in /home/sites/knowingabout.co.uk/public_html/hulme/wp-config.php on line 23

    Should there be commas or whatever after define('DISABLE_WP_CRON', true)

  14. MichaelH
    Volunteer
    Posted 2 years ago #

    Sorry, need a semicolon at the end there.

    define('DISABLE_WP_CRON', true);

    Put that right after the DB_COLLATE line.

  15. auntiebiotic
    Member
    Posted 2 years ago #

    forgot to say thx many posts ago. thx

  16. MichaelH
    Volunteer
    Posted 2 years ago #

    You are welcome. Please don't forget to mark this thread as Resolved.

  17. auntiebiotic
    Member
    Posted 2 years ago #

    unfortunetely doesnt appear to be my bandwidth is still high and if not resolved host will take me offline soon

  18. MichaelH
    Volunteer
    Posted 2 years ago #

    Maybe this will help:
    WordPress_Optimization

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.