Hi @insecttrojan,
With the Optimize Email option enabled, WP Mail SMTP relies on the Action Scheduler library which them makes use of the actionscheduler_logs table to store the logs.
From the plugin options we do not have an way to disable the log record storage, however, you can safely delete all the “completed” actions under the WP Mail SMTP -> Tools -> Scheduled Actions area (see).
I hope this helps.
the optimize is writing to many logs how can I set it off ? Can the next code helps ?
function custom_as_retention_period() { return DAY_IN_SECONDS;}add_filter( ‘action_scheduler_retention_period’, ‘custom_as_retention_period’ );
Hi @insecttrojan,
Thanks for the follow-up.
To confirm, there is no option to set this off from the WP Mail SMTP plugin.
By default, the retention period of 30 days. However, this can be changed with the sample code you shared via the action_scheduler_retention_period filter, for instance.
function custom_as_retention_period() {
return PERIOD_IN_SECONDS;
}
add_filter( 'action_scheduler_retention_period', 'custom_as_retention_period' );
I hope this helps.