WordPress.org

Support

Support » How-To and Troubleshooting » How to disable wp_cron via page loads and run it manually instead?

How to disable wp_cron via page loads and run it manually instead?

  • Hi!

    How can I disable the feature to run wp cron with page loads? I am able to schedule crons myself and just want to run wp-cron.php manually.

    Can someone please point me to the solution?

    cheers

    – Marc

Viewing 2 replies - 1 through 2 (of 2 total)
  • Marcm

    If you have not already found this, in your wp-config.php:

    define('DISABLE_WP_CRON', true); //Disable page load cron

    You will then need to create a cron that regularly calls yourdomain.com/wp-cron.php

    Can anyone tell me how I might be able to load WP Cron without page loads? I have a custom plugin developed for me that sends emails to subscribers, and spaces them using the wp cron, but if someone doesn’t visit the site in between “spacings”, the delay takes very long.

    For example, if I send it at 10pm, no one visits the site all night, then at 7am someone visits, it starts again, but the interim 9 hours were wasted…

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable wp_cron via page loads and run it manually instead?’ is closed to new replies.
Skip to toolbar