| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This guide details the setup of an advanced queue in CLI mode for the Mailchimp WooCommerce plugin, enhancing performance by running processes in the background, independent of web traffic.
Edit functions.php File: Include the following code:
function asdds_disable_default_runner() {
if ( class_exists( 'ActionScheduler' ) ) {
remove_action( 'action_scheduler_run_queue', array( ActionScheduler::runner(), 'run' ) );
}
}
add_action( 'init', 'asdds_disable_default_runner', 10 );Run the queue manually using WP-CLI:
wp --url=https://examplestore.com --path=/full/path/to/install/ action-scheduler runStop with control + c.
crontab -e* * * * * wp --url=https://examplestore.com --path=/full/path/to/install/ action-scheduler run/usr/bin/wp --url=http://yourdomain.com --path=/full/path/to/install/ queue listen| Back | FazBrowse Home | New Git URL |