• Resolved richardmichael

    (@richardmichael)


    Anyone using cPanel with either Softactulous or WordPress Manager will run into a minor problem if they disable WordPress cron, which is an option in both of those installers. When WordPress cron is disabled, the software creates a cronjob that executes twice an hour in cPanel.

    This twice an hour cronjob doesn’t seem to be enough for WordPress to not give a notice under Site Health as follows:

    A scheduled event is late
    Performance
    The scheduled event, $Doesn'tMatter is late to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.

    My question is, how often does WordPress want cron to be hit to not consider a schedule event as late?

    I couldn’t find anything with Google. Not many people care this much, but I’m a believer in avoiding Boy Who Cried Wolf situations. I’d rather not see Site Health notifications unless something out of the ordinary has occured.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    WP keeps track of cron tasks being missed or late as transient values as soon as they happen. Site health will flag it if it’s outside a small window of time. With WP cron disabled, this window is 15 minutes. There’s no late tolerance if WP cron is enabled.

    I’m not sure what that cPanel script is doing, but I guess to answer your question, maybe more often than every 15 minutes? IDK. Not sure that’ll help since the late task is still saved in a transient. The 15 minutes only determines if site health will flag it or not.

    Since WP cron is disabled, you could remove the cron test from the list of tests via the ‘site_status_tests’ filter.

    Thread Starter richardmichael

    (@richardmichael)

    Thank you, that link is exactly what I was looking for.

    I will try setting cron to every 10 minutes then.

    Thread Starter richardmichael

    (@richardmichael)

    I’ve been thinking about it and the 15 minutes seems arbitrary, especially since it is only when WP cron is disabled. With CP cron enabled and no cronjob, who’s to say your site hasn’t gotten traffic in 24 hours?

    I’m passionately against boy who cried wolf situations. I’m also passionate for data being truthful. I don’t think it is truthful to raise a stink at 16 minutes.

    With the linked code you gave me, is that the type of object that I can cleanly override in another location (functions.php, wp-config, etc)?

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.