Action Scheduler Cleardown

Display Eventbrite uses Action Scheduler to manage background tasks when background processing is enabled. The default cleardown of Action Scheduler history is 30 days and if you have lots of events past and present and many shortcodes with a a low cache setting this can start to take up space.

You can change the number of days Action Scheduler keeps track.

Please be aware Action Scheduler is user by many plugins such as WooCommerce and WP SMTP Mail and more, so make sure the time you allow for actions to be processed is appropriate for your system.

For Display Eventbrite I can’t see any reason to keep action history more than a couple of days.

You can use this snippet as a PHP snippet or as a plugin.

Was this helpful?