wp_actionscheduler_logs 巨大的大小问题以及如何解决这个问题

数据库表变得很大,它可能使用任何 SEO 或缓存插件(我的猜测)你可以在下面的屏幕截图中看到大小,你可以按照屏幕截图清除它。

wp_actionscheduler_logs Huge size issue and how to solve this
wp_actionscheduler_logs Huge size issue and how to solve this

还提供了应该在 7 天内清除表格的代码(默认情况下为 30 天)。

add_filter( 'action_scheduler_retention_period', 'onecom_action_scheduler_purge' );
/**
* Change Action Scheduler default purge to 1 week
*/
function onecom_action_scheduler_purge() {
return 604800;
}

你需要将上面的代码放在 function.php 中(下面的截图)。

截图
截图

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注