• Resolved Marisa

    (@marisa2023)


    I am using the free version of WP Mail SMTP.

    It works well.

    It was helpful in getting the DNS settings of my domain correctly set up to send and receive email i.e. the DMARC and SPF settings.

    However when I looked under WP Mail SMTP->Tools and go to the “Scheduled Actions” tab I see pages of completed actions.

    I just went through a deleted something like 200 completed actions.

    Does this list of completed actions keep growing and growing?

    How can I turn it off?

Viewing 1 replies (of 1 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @marisa2023,

    Thanks for reaching out!

    Action Scheduler is a versatile library that is used to manage and schedule cron jobs in WordPress. The WP Mail SMTP plugin uses Action Scheduler to help run tasks in the background without slowing down your site. These tasks are often time and resource-consuming.

    Many other popular WordPress plugins like WooCommerce and WPForms also rely on Action Scheduler to help execute actions more efficiently.

    By default, Action Scheduler will automatically remove completed tasks after 30 days. However, this time period can be changed with the action_scheduler_retention_period filter.

    In case it helps to know, you can add the below code snippet to your child theme’s functions.php file to decrease the retention period to one week:

    function custom_as_retention_period() {
    	return WEEK_IN_SECONDS;
    }
    add_filter( 'action_scheduler_retention_period', 'custom_as_retention_period' );

    I hope this helps. Thanks! 🙂

    • This reply was modified 3 years ago by Darshana.
Viewing 1 replies (of 1 total)

The topic ‘Tools->Scheduled Actions (Completed) keeps growing’ is closed to new replies.