Descripción
AMPM Queue Manager for Action Scheduler gives site administrators fine-grained, safe control over WordPress Action Scheduler behavior — without editing code.
Action Scheduler powers background processing in WooCommerce, Mailchimp, Jetpack, and dozens of other plugins. Its default settings are tuned for medium-to-large environments and can overwhelm shared hosting servers, causing slow page loads, server timeouts, and database bloat.
This plugin lets you tune key parameters from a clean admin panel (Settings Queue Manager), with pre-selected recommended values and plain-language descriptions of each trade-off.
The Tools tab shows the current queue status, provides a deliberately limited manual queue run, links to the Action Scheduler administration screen, and includes an adaptive AJAX cleaner for old completed, failed, or canceled actions.
Compatibility
- Requires WordPress 5.8 or newer.
- Requires PHP 7.2 or newer.
- Version 1.0.1 was confirmed working with WordPress 7.0.2 and Action Scheduler 3.9.3.
Tools: Queue Status and Manual Run
See pending, currently due, in-progress, and recently failed actions at a glance. If work is waiting, an administrator can start one conservative processing cycle limited to one runner, batches of 25 actions, and a 20-second runner time limit.
Because due actions can send email, process orders, or contact external services, the manual run requires explicit confirmation. A direct link opens the standard Action Scheduler administration screen, using the WooCommerce-integrated location when WooCommerce is active.
The queue status also reports the total number of failed actions and how many failed during the last 24 hours. Administrators can permanently delete all failed actions and their related logs in conservative batches after reviewing a clear confirmation warning.
Tools: Adaptive Action Scheduler Purge
Action Scheduler default cleanup routines often fail to process massive backlogs on old stores, leaving hundreds of thousands of orphaned rows.
The plugin includes a dedicated Tools tab providing an immediate, on-demand Action Scheduler DB cleanup.
* Adaptive Batching: Safely deletes old records using an intelligent AJAX loop that self-tunes its chunk size (up to 10,000 items per request) based on your server’s real-time response capability.
* Zero-Timeout Architecture: Built-in 504 Gateway Timeout detection automatically halts and retries with a smaller payload, ensuring large databases (50k+ rows) can be cleared on any hosting plan without crashing.
* Feedback & Safety: Shows real-time granular progress and requires explicit database-backup confirmation before starting the irreversible cleanup.
Action Scheduler Settings
Concurrent Batches
Controls how many batches of background jobs can run at the same time.
Default: 5. On shared hosting, 5 simultaneous batches can spike CPU and memory usage, triggering server-level throttling or timeouts. Setting this to 1 ensures only one batch runs at a time, protecting server resources — at the cost of slower queue processing.
Jobs per Batch
Controls how many individual jobs (actions) are processed in each batch run.
Default: 25. Lowering this reduces peak memory usage. Raising it speeds up queue processing on capable servers but risks PHP memory limit errors on constrained environments.
Time Limit per Run
Controls the maximum seconds a queue runner is allowed to execute before stopping.
Default: 30 seconds. When running only 1 concurrent batch, the 30-second default may not be enough to drain large queues. Increasing to 60 or 90 seconds lets each run do more work without needing additional concurrency.
Log Retention Period
Controls how long completed and failed action records are kept in the database.
Default: 30 days. On busy stores, the Action Scheduler log can grow to hundreds of thousands of rows. Reducing retention to 7 or 14 days keeps the database lean without losing meaningful debugging history for most use cases.
WooCommerce Settings
Product Loop Transient Expiration
Controls how long WooCommerce caches product loop data (wc_product_loop_* transients) in the database.
Default: 30 days. These transients accumulate per product ID and can bloat the wp_options table significantly. Reducing to 1 day keeps the cache fresh and the database tidy, with minimal performance impact since WooCommerce regenerates them efficiently.
Cart Fragments
Controls whether WooCommerce fires an AJAX request on every page load to update the mini-cart widget in real time.
Default: Enabled. This AJAX call adds latency to every page view. If your theme does not display a live mini-cart that updates instantly (e.g. you use a simple cart icon that links to /cart), disabling fragments eliminates an unnecessary request per visitor. The cart page and checkout are not affected.
Instalación
- Upload the
ampm-queue-manager-action-schedulerfolder to/wp-content/plugins/. - Activate the plugin through the Plugins menu in WordPress.
- Go to Settings Queue Manager and review or adjust the settings.
Preguntas frecuentes
-
Does this plugin require WooCommerce?
-
No. The Action Scheduler settings work on any WordPress site. The WooCommerce section is automatically disabled and hidden if WooCommerce is not active.
-
Is it safe to use on a production site?
-
Yes. All settings ship with conservative recommended values. The admin panel uses a strict allowlist — no arbitrary values can be submitted.
-
What happens if I uninstall the plugin?
-
The plugin deletes its settings from the database on uninstall. Action Scheduler and WooCommerce revert to their upstream defaults.
-
Can I disable only some features?
-
Yes. Each parameter is configured independently. You can adjust only the settings that matter for your site.
-
Will this conflict with other plugins that modify Action Scheduler?
-
The plugin uses standard WordPress filters. If another plugin applies the same filters, the last one registered wins. In most cases there is no conflict, but if you notice settings not taking effect, check for other plugins that modify Action Scheduler behavior.
-
What does the Purge Tool delete?
-
The Purge Tool selects only old actions whose status is
complete,failed, orcanceled, together with their related log rows. Pending and recent actions are excluded. Database changes are irreversible, so make a current backup and test on a staging site before using the tool on a production database. -
What does Run Queue Now do?
-
It asks Action Scheduler to process actions that are already due. The run is deliberately constrained to one runner, batches of 25 actions, and a 20-second runner time limit. Individual actions can still take longer or perform external side effects, so review the queue and create a backup before running unfamiliar jobs.
-
What does Delete Failed Actions remove?
-
It permanently deletes every action currently marked as
failed, regardless of age, together with its related Action Scheduler logs. It does not delete pending, in-progress, complete, or canceled actions. Review the failure details first because they may reveal a recurring problem, and back up the database before continuing.
Reseñas
No hay reseñas para este plugin.
Colaboradores y desarrolladores
“AMPM Queue Manager for Action Scheduler” es un software de código abierto. Las siguientes personas han colaborado con este plugin.
Colaboradores“AMPM Queue Manager for Action Scheduler” ha sido traducido a 1 idioma. Gracias a los traductores por sus contribuciones.
Traduce “AMPM Queue Manager for Action Scheduler” a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN , o suscríbete al log de desarrollo por RSS .
Registro de cambios
1.0.3
- Removed bundled PO, MO, and POT files from the WordPress.org package; translations are managed through translate.wordpress.org.
- Added nonce validation for the settings success/reset notice query parameters.
- Prepared every action ID used by the adaptive purge with an individual
%dplaceholder.
1.0.2
- Added a batch-based tool to permanently delete all failed actions and their related logs.
- Changed the queue summary to show total failures while retaining the 24-hour failure count.
- Documented successful testing with WordPress 7.0.2 and Action Scheduler 3.9.3.
- Sanitized each submitted setting before applying the existing strict allowlist.
- Documented the safe table-name interpolation required for compatibility with WordPress 5.8.
1.0.1
- Renamed the plugin to AMPM Queue Manager for Action Scheduler and changed its slug and text domain to
ampm-queue-manager-action-scheduler. - Added queue status counters for pending, due, in-progress, and recently failed actions.
- Added a deliberately limited manual queue run with explicit confirmation.
- Added a link to the standard Action Scheduler administration screen, including its WooCommerce location.
- Fixed the purge query so it no longer references the nonexistent
action_idcolumn in the claims table. - Updated the WordPress.org contributor metadata and removed the unnecessary manual translation loader.
1.0.0
- Initial release.
