Skip to content

Optional on demand queue processing

khungate edited this page Jul 25, 2023 · 8 revisions

Welcome to the guide on Optional On-Demand Queue Processing in the MailChimp for WooCommerce Integration. This guide will help you understand how to manage the queue processing system in different versions of the plugin.

Overview

Functionality

The queue processing system is an integral part of the plugin that handles various tasks. Depending on the version of the plugin you're using, you may have different options for managing this system.

Version 2.3 or Greater

Queue System Update

Starting from version 2.3, the setting for on-demand queue processing has been deprecated. The queue system has been moved to use the Action Scheduler, a highly optimized system for running queued jobs in WordPress.

If you had the constant MAILCHIMP_DISABLE_QUEUE set to true, it's completely safe (and recommended) that you remove the define('MAILCHIMP_DISABLE_QUEUE', true); call, which is most likely to have been placed in your wp-config.php file.

Versions Before 2.3

On-Demand Queue Processing

If you're using a version of the plugin prior to 2.3 and would like to turn off the background queue processing to handle jobs "on-demand", you can do so by adding a constant in your wp-config.php file: define('MAILCHIMP_DISABLE_QUEUE', true);. This can help reduce high CPU usage on small servers by making a call to the admin-ajax file and manually processing a single request at a time.