Event Cleanup Cron #
The event cleanup cron enforces your data retention policy by archiving or deleting old event records.
Schedule #
| Property | Value |
|---|---|
| WP-Cron hook | dmsi_analytics_cleanup_events |
| Frequency | Monthly |
| Handler | Event_Cleanup::run() |
What It Does #
Based on your configured retention policy (in Analytics > Settings > Data & Maintenance):
- Keep Forever: Cron runs but takes no action
- Archive after N months: Moves events older than N months to an archive table
- Delete after N months: Permanently deletes events older than N months
Impact on Analytics #
Pre-calculated metrics (the analytics_metrics table) are never affected by event cleanup. All your dashboard charts and reports continue to work after old events are deleted.
