UpdraftPlus Backup and Restoration
[resolved] wp-cron.php run via server, not WordPress (3 posts)

  1. edeneye
    Posted 3 years ago #


    We utilize an actual cron job on our server to run wp-cron.php periodically instead of having it called every time a page is viewed to reduce server load.

    Updraft Plus doesn't seem to work in this scenario, or when I manually call wp-cron.php (It works properly if I re-enable wp-cron.php through WordPress)

    Is there a way to get Updraft Plus to work when wp-cron is disabled in WordPress and run via a cron job on the server?

    Thank you.


  2. edeneye
    Posted 3 years ago #

    Nevermind. This was an error on our end regarding require paths in the wp-cron.php when run via the command line php on the server. (Another php script was working, so we didn't think the issue was on our end but the working script was self-contained with no includes/requires)

    Switching the cron command to use cURL instead of php command line worked.

  3. David Anderson
    Plugin Author

    Posted 3 years ago #

    For anyone else reading in future, note that UpdraftPlus neither knows nor cares how WordPress's scheduler gets invoked, so if you start suspecting a difference in behaviour depending on how it was invoked, then you're surely barking up the wrong tree.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • UpdraftPlus Backup and Restoration
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic