Skip to content

Most of my plugins rely heavily on WP-Cron, …

Most of my plugins rely heavily on WP-Cron, and this nicely summarizes its behavior. “The WP-Cron functions are not actually cron functions. Instead of executing tasks precisely as scheduled, [WordPress] waits until the front end or admin is loaded, checks if any jobs are scheduled and then fires as needed.” https://wordpress.stackexchange.com/questions/16901/what-causes-wp-schedule-single-event-to-fire-off

What causes wp_schedule_single_event to fire off?

wordpress.stackexchange.com

Replies

  1. Jan Boddez Jan Boddez on

    An oft-used trick is to regularly “poll” wp-cron.php by means of an actual cron job, rather than wait for the next HTTP request to hit your server.

    Via mastodon.social, in reply to Most of my plugins rely heavily on WP-Cron, ….

  2. Jan Boddez Jan Boddez on

    WP-Crontrol, by the way, is the best plugin ever, enabling WordPress administrators to view, trigger, and modify whichever jobs are scheduled.

    Via mastodon.social, in reply to Most of my plugins rely heavily on WP-Cron, ….

  3. Beko Pharm Beko Pharm on

    @janboddez kinda happy with wp cli. I’ve ssh access to my vhost tho. May be a show stopper for others.

    Via social.tchncs.de, in reply to Most of my plugins rely heavily on WP-Cron, ….

  4. Jan Boddez Jan Boddez on

    @bekopharm WP-CLI is awesome! (Try mass deleting posts from WP-Admin, for example. Your server will choke. Not so with the CLI!) But it’s not a plugin. 😃 And I actually like WordPress’s back end. 😊

    Via mastodon.social, in reply to Most of my plugins rely heavily on WP-Cron, ….