• Resolved vanbemmel

    (@vanbemmel)


    we don’t use wp-cron because of high CPU prevention so we can only use manual cronjobs. is it possible to use this plugin to schedule plugin/theme updates for example every night during low traffic?

    that would be awesome!

    Thanks for your help.

    • This topic was modified 1 year, 8 months ago by vanbemmel.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Assuming that you have set WP’s DISABLE_WP_CRON constant to true in your wp-config.php file as the constant is used for disabling internal WP-Cron, then to ensure that all WP’s scheduled events (e.g automatic-updates event) can be run properly even the if internal WP-Cron is disabled, you will need to set up an external cronjob, which is usually can be done from within your hosting panel and add a new crontab job that will access the wp-cron.php file to look for past due or due now scheduled events and run the them in a specific time interval. You might also want to install a cron management plugin like WP Crontrol that allows you to add, modify, and manage WordPress scheduled events directly from the WP dashboard. You can also define custom time intervals for the automatic updates schedule.

    Thanks
    Anthon

    Thread Starter vanbemmel

    (@vanbemmel)

    Thanks Anton and we can indeed add a server cron in our server dashboard (Cloudways) but how should that line look like exactly? can you send me an example which we can paste into the command line of the cronjob tasks? Thanks so much!

    Hi,

    I have no idea how to add a new cron jobs on Cloudways as I’ve never used their service. However, I found a good article/tutorial on the Cloudways’ website explaining the cron jobs and how you can create it via the backend panel.

    https://support.cloudways.com/en/articles/5124057-how-to-create-cron-jobs-on-cloudways

    The important thing is that your cron (either you use curl or wget) must be able to access your wp-cron.php by accessing the corresponding URL of your website (e.g. https://www.example.com/wp-cron.php?doing_wp_cron)

    Thanks
    Anthon

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can we schedule updates with manual cronjob instead of wp-cron?’ is closed to new replies.