WordPress.org

Ready to get started?Download WordPress

Forums

How to disable wp_cron via page loads and run it manually instead? (3 posts)

  1. Marc
    Member
    Posted 3 years ago #

    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

  2. skippybosco
    Member
    Posted 3 years ago #

    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

  3. Clicknathan
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic