Results 1 to 4 of 4
  1. #1
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    4,969
    Thanks
    426
    Thanked 2,270 Times in 1,509 Posts

    Default Disabling WP_Cron - How Often Should You Schedule Cron Jobs?

    Anyone done this? We have a site that's having issues with WP_Cron and the host has recommended we disable it and use proper cron jobs instead.

    Tbh the 'missed schedule' issue has always been a bit annoying so happy to give it a try but wanted to see if anyone had any experience or tips.

    Main question is how often should it fire? We use scheduling for offers (both sending new ones live and expiring old ones) so we want a relatively short window but one that isn't going to be too aggressive on the resources - went for 15 minutes, does that sound about right?
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding on Dan - see the list here. Prices negotiable, and willing to swap for decent links.

  2. #2
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    31,572
    Thanks
    3,558
    Thanked 8,637 Times in 5,499 Posts

    Default

    The biggest issue from the builtin crons that wordpress does, is they are not exposed or easily manipulated or changed without yet another plugin (like crontrol or something similar).

    If you seem to be having problems with specific crons, you could either disable it completely or install wp crontrol and disable the offending runs if you know which ones are the issue or disable them all and re-enable them over the course of a few days to see which ones are causing trouble.

    Once you determine which ones are at the root issue, it might help you determine if two plugins are conflicting, or trying to run at the same time causing issues, or consuming too much memory or resources.

    Plugin mentioned (unless others have better recommendations)
    https://wordpress.org/plugins/wp-crontrol/

    Rick
    Universal4

  3. #3
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    4,969
    Thanks
    426
    Thanked 2,270 Times in 1,509 Posts

    Default

    We have a few issues with it, one of them is the core WP publishing cron which needs to run but one one particular site keeps missing schedule even though there's plenty of activity. If we turn the cache off it's fine but the site has too much traffic to want to do that long term.

    Another issue is a site with less traffic that gets occasional traffic spikes which is causing a high CPU load from WP_Cron. This is where the host has recommended disabling it and using a more traditional cron job.

    Tbh though I like the idea of having it as an option, especially for those pesky missed schedule errors. Just not something I'm too familiar with.
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding on Dan - see the list here. Prices negotiable, and willing to swap for decent links.

  4. The Following User Says Thank You to baldidiot For This Useful Post:

    universal4 (1 June 2021)

  5. #4
    datstheguy is offline Public Member
    Join Date
    September 2021
    Posts
    28
    Thanks
    8
    Thanked 9 Times in 7 Posts

    Default

    We disable WordPress cron jobs as soon as we launch a website and then use EasyCron to trigger whatever scripts we need to. We do it every five minutes I think.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •