• Resolved audreysmith

    (@audreysmith)


    HI

    I have a site that that gets a lot of hits.
    The problem is that this site uses lots of server resources because wp-cron.php
    runs every time that a page is loaded.

    I can disable wp-cron.php
    and set up wp-cron to run in cpanel once a night and wp-cron does run once a night
    but,
    this stops wordpress plugins from automatically updating even though these plugins are set for automatic update.

    With wp-cron.php disabled and cron set to run nightly for the site-
    Instead of these plugins updating – in the wordpress admin plugin section-
    if a plugin needs updating-
    right under where it says “Automatic Updates Enabled”
    it says automatic updates are scheduled to run in a number of hours
    and it also says that the plugin has not updated because there may be a problem with cron.
    If I manually update the plugin – it works just fine.

    In addition, with wp-cron.php disabled and cron set to run nightly for the site- the wordfence plugin (free version) stops emailing me if a plugin needs updating or if it is abandoned, etc.

    Is there a way to only disable wp-cron.php for every page load and still keep wp-cron.php working for plugin updates?

    Thanks
    Audrey

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @audreysmith,

    Disabling WP Cron is certainly an option with higher traffic websites. To my understanding, your server needs to be scheduled to run wp-cron.php once visitors to your site no longer trigger it so that the automatic plugin updates will still potentially happen daily (or another interval to your preference). As Wordfence doesn’t control this, I have found a link that may be helpful: https://kinsta.com/knowledgebase/disable-wp-cron/

    I hope that is of assistance.

    Peter.

    Thread Starter audreysmith

    (@audreysmith)

    Thanks for your response – but – per my post- I have already tried disabling cron and setting up a nightly cron job. That works just finr and is not the problem.

    The problem is – as previously stated – with wp-cron.php disabled and wp-cron.php running nightly for the site- the wordfence plugin (free version) stops emailing me if a plugin needs updating or if it is abandoned, etc.

    This is a wordfence problem not a wp-cron.php issue

    Thanks
    Audrey

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘disable wp-cron for page load’ is closed to new replies.