🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
WS Action Scheduler Cleaner icon
aktiv gepflegt Getestet mit WP 7.1

WS Action Scheduler Cleaner

Optimize your WordPress database by efficiently managing the Action Scheduler tables used by popular plugins like WooCommerce.

Aktive Installationen3K+1K + Stufe
Downloads · 30d3.7K▲ +11.1% vs prev. 30d
Wertung5/55 Bewertungen
Gesundheits-Score72/100Gut
Downloads aller Zeiten23.2KSince Jun 2025
Unterstützung gelöst0 / 10% in den letzten 2 Monaten
erfordertWP 6.3PHP 7.4+
Downloads · 7d438▼ -22.6% week over week
Unser Urteil

Solide Wahl

WS Action Scheduler Cleaner is a solid plugin choice in 2026, with a few things worth checking first. It runs on 3K+ sites, is rated 5/5 and was last updated 3 weeks ago, and scores 72/100 on our health check.

  • Aktiv entwickelt – letztes Update vor 3 Wochen
  • Getestet mit dem neuesten WordPress (7.1)

Tägliche Downloads

254508762Sep 5Oct 19Dec 3
Gestern49
Täglicher Durchschnitt (1 Jahr)52
Spitzentag1,01617.10.2026
Letzte 12 Monate18.9K

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 1.392.2%
  • 1.26.9%
  • 1.00.87%

Bewertungsaufschlüsselung

★★★★★★★★★★ 5 from 5 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About WS Action Scheduler Cleaner

From the official readme · v1.3.2

Beschreibung

WS Action Scheduler Cleaner is a small tool designed to optimize your WordPress database by managing the Action Scheduler tables. Action Scheduler, a robust job queue and background processing library, is utilized by many popular plugins such as WooCommerce, WP Forms, and Jetpack to handle resource-intensive tasks asynchronously.

While Action Scheduler is crucial for the smooth operation of these plugins, its tables can grow significantly over time, potentially impacting your site’s performance. This is where WS Action Scheduler Cleaner comes in.

Key features:

  • Easily clear completed, failed, or canceled actions from the Action Scheduler tables
  • Set up automatic clearing schedules for efficient database maintenance
  • Optimize the database tables to reclaim unused space and potentially improve performance
  • Customize retention periods for logs and actions
  • User-friendly interface integrated into the WordPress admin area

By regularly cleaning up unnecessary data from Action Scheduler tables, you can:

  • Improve database query performance
  • Reduce database size
  • Enhance overall site speed and responsiveness

WS Action Scheduler Cleaner is an essential tool for any WordPress site using plugins that rely on Action Scheduler, especially high-traffic e-commerce sites or membership platforms that generate a large number of scheduled actions.

Verwendung

  1. In the WordPress admin panel, go to Tools > Action Scheduler Cleaner
  2. Select which action statuses you want to clear (completed, failed, canceled)
  3. Set up different automatic clearing schedules if desired
  4. Click “Clear Selected Actions” to manually clear actions – or let the automatic schedule handle it
  5. Optionally optimize the DB tables as well; this is your solution for when the size of the tables doesn’t seem to go down on simple clearing

For best results, we recommend setting up an automatic clearing schedule to maintain optimal database performance. Something like 7 days is usually sufficient. By default, Action Scheduler does this every 30 days, but only for completed and canceled actions, whereas you can control this aspect in the plugin. On deactivation of the plugin, the 30-day retention period as well as which actions get cleared will reset to their defaults.

Developer Information

Cleanup and optimization run in time-bounded chunks: each pass deletes up to batch_size rows per SQL statement and repeats until max_seconds elapses or no matching rows remain. Progress is saved between chunks so large tables can be processed without a single long request.

The following filters (since 1.3.0) let you tune behavior for your hosting environment. Add them in a custom plugin or your theme’s functions.php.

Manual cleanup (admin UI / AJAX)

  • wsacsc_ajax_cleanup_batch_size (default: 10000) — Maximum rows deleted per DELETE statement during manual clear operations initiated from the admin screen. Since 1.3.2, each job starts with smaller batches and adapts the size to the target time below, so this is an upper limit.
  • wsacsc_ajax_cleanup_target_batch_seconds (default: 1.0) — Target duration in seconds of one DELETE statement during manual clear operations. The batch size doubles while statements are faster than half this value and halves when they take more than twice this value.
  • wsacsc_ajax_cleanup_sleep_us (default: 5000) — Microseconds to pause between two DELETE statements during manual clear operations.
  • wsacsc_ajax_cleanup_max_seconds (default: 5) — Seconds of work per AJAX request before the plugin saves progress and returns. The admin UI polls for the next chunk while you keep the page open, so a lower value updates the progress text more often. Decrease if requests time out.

Scheduled cleanup (WP-Cron)

  • wsacsc_cron_cleanup_batch_size (default: 1000) — Same as the AJAX batch size, but for automatic retention cleanup run on a schedule. Defaults are lower than manual cleanup to reduce impact on live traffic.
  • wsacsc_cron_cleanup_target_batch_seconds (default: 0.5) — Same as the AJAX target time, but for scheduled cleanup.
  • wsacsc_cron_cleanup_sleep_us (default: 25000) — Microseconds to pause between two DELETE statements during scheduled cleanup.
  • wsacsc_cron_cleanup_max_seconds (default: 45) — Seconds of work per cron run before the job pauses and schedules continuation (see below).

Background continuation

  • wsacsc_cleanup_use_background_continuation (default: true) — When a chunk ends before deletion is finished, schedule a single WP-Cron event to resume the job in the background. This is important for scheduled cleanup on large tables and when no admin session is polling progress. Manual cleanup in the browser also continues via AJAX polling; setting this filter to false disables cron-based resumption only (unfinished scheduled jobs may stall unless something else triggers the next chunk). Since 1.3.2, only one process works on a job at a time: while the admin page polls a manual job, the background continuation waits, and it takes over about 25 seconds after the page stops polling.
  • wsacsc_cleanup_continuation_delay (default: 30) — Seconds until the background continuation runs. Clamped between 15 and 120.
  • wsacsc_cron_cleanup_cli_max_seconds (default: 600) — When WP-Cron runs through WP-CLI (for example wp cron event run --due-now from a system cron job), a scheduled cleanup keeps running its next chunks in the same process, with the normal pause between chunks, instead of waiting for the next system cron run. After this many seconds, it starts no new chunk and leaves the rest to the next run.

Scheduled auto-optimize

After a scheduled retention pass deletes all matching rows for a table, the plugin may run OPTIMIZE TABLE automatically to reclaim disk space. Manual clear from the admin UI never auto-optimizes; use the Optimize button instead.

  • wsacsc_scheduled_auto_optimize_max_rows (default: 100000) — Run auto-optimize only if the table’s total row count is at or below this value after cleanup. Prevents long, blocking optimize operations on tables that are still huge. Values below 1000 are raised to 1000.
  • wsacsc_scheduled_auto_optimize_delay_seconds (default: 5) — Seconds to wait after the last delete batch before running OPTIMIZE TABLE, giving the database a short breather. Clamped between 0 and 60.

Resources and statistics

  • wsacsc_clear_actions_use_rebuild (default: true) — When “Clear Selected Actions” deletes almost all rows of a large table, the plugin copies the few rows to keep, empties the actions and logs tables with TRUNCATE TABLE, and copies the kept rows back with their original IDs. This takes seconds instead of minutes and frees the disk space at once. The tables are locked during the rebuild, so Action Scheduler waits briefly and loses nothing. The plugin falls back to deleting in batches when the conditions below are not met, when the database user lacks the CREATE, DROP, ALTER or LOCK TABLES privilege, or when the tables are busy for more than 5 seconds. If a rebuild stops halfway, the plugin restores the kept rows on the next admin page load. Scheduled cleanup never uses the rebuild.
  • wsacsc_rebuild_min_rows (default: 100000) — Smallest number of rows to delete for which the rebuild is used.
  • wsacsc_rebuild_max_kept_actions (default: 10000) — Largest number of kept actions (for example pending actions) for which the rebuild is used. The lock time grows with this number.
  • wsacsc_rebuild_max_kept_logs (default: 40000) — Largest number of kept log entries for which the rebuild is used.
  • wsacsc_clear_logs_use_truncate (default: true) — “Clear Logs” and a logs retention of 0 days empty the logs table with TRUNCATE TABLE, which takes under a second and frees the disk space at once. This needs the database DROP privilege. Without it, or when this filter returns false, the plugin deletes the log entries in batches.
  • wsacsc_cleanup_memory_limit (default: 512M) — Memory limit for cleanup and optimize requests. The plugin only raises the limit through wp_raise_memory_limit() and never lowers it.
  • wsacsc_exact_count_max_rows (default: 1000000) — Row counts on the admin screen are exact up to this value. For a larger table, the screen shows the estimate of the database server with a ~ prefix. Values below 1000 are raised to 1000.

Example (gentler cron, no background continuation):

add_filter( 'wsacsc_cron_cleanup_batch_size', function () { return 500; } );
add_filter( 'wsacsc_cron_cleanup_max_seconds', function () { return 30; } );
add_filter( 'wsacsc_cleanup_use_background_continuation', '__return_false' );

Author: Winning Solutions
Author URI: https://www.winning-solutions.de

Installation

  1. Laden Sie den Ordner action-scheduler-cleaner in das /wp-content/plugins/-Verzeichnis hoch
  2. Aktivieren Sie das Plugin über das „Plugins“-Menü in WordPress
  3. Navigate to Tools > Action Scheduler Cleaner to access the interface.

Änderungsprotokoll

Fixes early deletion of finished actions when a cleanup schedule is turned on. Recommended for all users.

2026-11-10: 1.3.2

  • Fixed: With a cleanup schedule turned on, Action Scheduler deleted all finished actions at once. It now keeps them for your retention period.
  • Fixed: Activation and deactivation no longer cause database errors on MySQL. Table sizes now show correctly on MySQL 8.
  • Fixed: Clearing old actions now also removes their log entries. Retention now uses UTC time.
  • Improved: Clearing millions of finished actions or logs now takes seconds instead of minutes. Other clears show their progress as rows deleted of the total and no longer run twice at the same time or stop early.
  • Improved: Faster table statistics, no duplicate database index, complete German translations, and code that follows the WordPress Coding Standards.

2026-10-15: 1.3.1

  • Fix high Redis and object cache load: The plugin no longer checks and repairs its cron events on every page request. In 1.3.0, this check could flush the whole options cache group several times per second. With Redis Object Cache, each flush scans the full Redis keyspace, so Redis could reach 100% CPU.
  • Fix scheduled cleanup without a time of day: When no time of day was set, the next run moved forward on every check, so the scheduled cleanup never ran. Existing valid events now keep their next run time.
  • Safer scheduling: All changes to the plugin cron events go through one lock and the public WP-Cron functions. A failed attempt waits 5 minutes before the next attempt.
  • No full cache flush on uninstall: Uninstalling the plugin no longer empties the whole object cache.

2026-05-25: 1.3.0

  • More reliable cleanup performance: Manual AJAX cleanup now uses time-bounded chunks with progress saved after each batch; scheduled cron uses gentler defaults.
  • Prevent DB contention: Add global lock to prevent parallel clear/optimize operations. This was mainly relevant on sites with huge tables that would take a long time to clear.
  • Table size bugfix: Sometimes, the table size would not get updated correctly.
  • Add filters for custom setups: wsacsc_ajax_cleanup_batch_size, wsacsc_ajax_cleanup_max_seconds, wsacsc_cron_cleanup_batch_size, wsacsc_cron_cleanup_max_seconds, wsacsc_cleanup_use_background_continuation, wsacsc_scheduled_auto_optimize_max_rows, wsacsc_scheduled_auto_optimize_delay_seconds.

2026-05-22: 1.2.9.1

Fix: Minor CSS fix with Modern styles.

2026-05-22: 1.2.9

  • WordPress 7.0 compatibility: Tested with WordPress 7.0; minimum WordPress version is now 6.3.
  • PHP compatibility: Supports PHP 7.4 through 8.5.
  • WordPress 6.3 APIs: Diagnostic logging via wp_is_development_mode( 'plugin' ), cron_memory_limit for scheduled cleanups, and simplified object cache flushing.
  • Admin UI: Styles use WordPress admin theme CSS variables for better compatibility with the Modern admin color scheme.
  • Scheduling: Cron health checks run on the plugin admin screen only; reduced redundant schedule registration hooks.
  • Security: Hardened AJAX status save and cleanup progress validation before batch deletes.
  • Retention fix: Scheduled action cleanup now uses completion or last attempt time (aligned with Action Scheduler), not the original scheduled date—important for high-backlog sites where old scheduled dates caused immediate deletion of newly finished actions.
  • Admin copy: Clarified cleanup schedule vs retention period and why Action Scheduler status tabs may show only Pending.
  • FAQ: Added troubleshooting for missing Complete/Failed status filters.

2025-12-11: 1.2.5

  • Increased batch size: AJAX-caused cleanups are a bit too slow to deal with GB-sized tables, so now they’re faster while still not stressing the DB too much.

Vollständiges Änderungsprotokoll auf WordPress.org →

Screenshots

The plugin's user interface.
The plugin's user interface.

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Fragen und Antworten

WS Action Scheduler Cleaner: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is WS Action Scheduler Cleaner free?

Yes. WS Action Scheduler Cleaner is free to download and use from the official WordPress.org plugin directory.

Is WS Action Scheduler Cleaner safe to use in 2026?

WS Action Scheduler Cleaner is a solid plugin choice in 2026, with a few things worth checking first. It runs on 3K+ sites, is rated 5/5 and was last updated 3 weeks ago, and scores 72/100 on our health check.

How many websites use WS Action Scheduler Cleaner?

WS Action Scheduler Cleaner is active on 3K+ WordPress websites and has been downloaded 23,180 times since it launched in June 2025. It was downloaded 3,658 times in the last 30 days.

Does WS Action Scheduler Cleaner work with WordPress 7.1?

Yes. The developer has tested WS Action Scheduler Cleaner up to WordPress 7.1.5, the latest release. It requires WordPress 6.3 or newer.

What PHP version does WS Action Scheduler Cleaner need?

WS Action Scheduler Cleaner requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was WS Action Scheduler Cleaner last updated?

The latest version, 1.3.2, was released on November 12, 2026 (3 weeks ago).

Who makes WS Action Scheduler Cleaner?

WS Action Scheduler Cleaner is developed and maintained by Winning Solutions.

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen