• Resolved Insect Trojan

    (@insecttrojan)


    hello I need help the actionscheduler_logs is increase very fast when I have enable the Optimize Email Sending because is running every minute can I fix it to not write on the database logs ? Thanks a lot

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Patrick

    (@paddyam)

    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.

    Thread Starter Insect Trojan

    (@insecttrojan)

    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’ );

    Plugin Support Patrick

    (@paddyam)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘actionscheduler_logs’ is closed to new replies.