Action Scheduler 4.0.0 is now available, bringing crucial updates that can improve database management for WooCommerce stores, especially those with high transaction volumes. The new version will be bundled with WooCommerce 11.0, expected on July 28th. Store owners should consider updating to avoid potential performance issues caused by unpurged failed actions.
New Default Settings for Purging Failed Actions
One of the most significant changes in 4.0.0 is the introduction of automatic purging for failed actions after three months. Previously, failed actions remained indefinitely, leading to bloated database tables. This new default behavior helps maintain optimal database performance, especially for busy stores. Store owners can adjust the retention period or disable this feature if necessary.
WordPress Version Requirements
Action Scheduler 4.0.0 requires WordPress version 6.8 or newer and is compatible with WordPress 7.0. Ensure your site meets these requirements to take advantage of the new features.
Dedicated Daily Cleanup Job
The cleanup process has been revamped to run as a dedicated job once a day at 3 AM site time, rather than inline during queue processing. This change allows for more efficient handling of large datasets, ensuring that cleanup tasks do not hinder performance during peak activity.
Other Changes and Fixes
In addition to the major updates, Action Scheduler 4.0.0 includes various other improvements. The versioning change to 4.0.0 indicates breaking changes, so developers should review their implementations to ensure compatibility.
Frequently Asked Questions
What is the new default retention period for failed actions in Action Scheduler 4.0.0?
Failed actions are now purged by default after three months.
What version of WordPress is required for Action Scheduler 4.0.0?
Action Scheduler 4.0.0 requires WordPress 6.8 or newer.
When will WooCommerce 11.0 be released with Action Scheduler 4.0.0?
WooCommerce 11.0 is currently scheduled for release on July 28th.