BP_Background_Updater::handle_cron_healthcheck()
Handle cron healthcheck
Description
Restart the background process if not already running and data exists in the queue.
Source
File: bp-core/classes/class-bp-background-updater.php
public function handle_cron_healthcheck() { if ( $this->is_process_running() ) { // Background process already running. return; } if ( $this->is_queue_empty() ) { // No data to process. $this->clear_scheduled_event(); return; } $this->handle(); }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.