Home / Widgets / Action Scheduler Cleardown | Display Eventbrite Events
Duplicate Snippet

Embed Snippet on Your Site

Action Scheduler Cleardown | Display Eventbrite Events

Eventbrite uses Action Scheduler to handle background tasks when background processing is enabled. By default, Action Scheduler history is cleared every 30 days. However, if you have a large number of past and current events, as well as many shortcodes with a low cache setting, this can consume a significant amount of space. To address this, you have the option to adjust the number of days that Action Scheduler keeps track of.

It's important to note that Action Scheduler is utilized by various plugins, including WooCommerce and WP SMTP Mail, among others. Therefore, it's crucial to ensure that the time allowance for processing actions is suitable for your system.

You can use this snippet as a PHP snippet to set Action Scheduler clear down interval.

(Note this code snippet applies for "Display Eventbrite Events Plugin" available here: https://fullworksplugins.com/products/widget-for-eventbrite/ )

Code Preview
add_filter('action_scheduler_retention_period', function() {
	return 2 * DAY_IN_SECONDS;   // two days


Add a Comment