Log Cleanup Job #
Removes old records from Update Server log tables to manage database size.
Job Details #
| Property | Value |
|---|---|
| Hook | dmsilm_us_cleanup_logs |
| Schedule | Daily |
| Retention window | Configurable in settings (default: 90 days) |
What It Deletes #
| Table | Records Removed |
|---|---|
wp_dmsilm_us_update_checks | Records older than the log retention setting |
wp_dmsilm_us_update_downloads | Records older than the log retention setting |
wp_dmsilm_us_email_queue | Sent and failed emails older than the log retention setting |
wp_dmsilm_us_version_tracking | Stale records with no update check in the last 180 days |
What It Does NOT Delete #
- Version meta (file paths, rollout settings, channel assignments)
- Version files on disk
- Any core DDLS data
Managing Log Size #
If the log tables are growing very large:
- Reduce log retention days in DDLS > Settings > Update Server (e.g., from 90 to 30)
- The next daily run will trim older records
If you need to immediately reduce table size, you can manually run the cleanup:
wp cron event run dmsilm_us_cleanup_logs
