WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. edeneye
    Member
    Posted 1 year ago #

    Hello,

    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.

    http://wordpress.org/extend/plugins/updraftplus/

  2. edeneye
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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.

    David

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic