标签:l命令 响应 conf 文档 hook git sts font 调用
define(‘DISABLE_WP_CRON‘, true);
* * * * * cd /var/www/html && /usr/local/bin/wp cron event run --due-now > /dev/null
Dec 7 11:40:01 aliyun CROND[9189]: (liu) CMD (cd /var/www/html && /usr/local/bin/wp cron event run --due-now > /dev/null) Dec 7 11:40:01 aliyun CROND[9190]: (liu) CMD (/usr/lib64/sa/sa1 1 1) Dec 7 11:41:01 aliyun CROND[9285]: (liu) CMD (cd /var/www/html && /usr/local/bin/wp cron event run --due-now > /dev/null)
$wp cron event list +------------------------------------------+---------------------+-----------------------+------------+ | hook | next_run_gmt | next_run_relative | recurrence | +------------------------------------------+---------------------+-----------------------+------------+ | jetpack_display_posts_widget_cron_update | 2018-12-06 10:48:49 | now | 10 minutes | | jetpack_sync_cron | 2018-12-06 10:48:55 | now | 5 minutes | | jetpack_sync_full_cron | 2018-12-06 10:48:55 | now | 5 minutes | | jp_sitemap_cron_hook | 2018-12-06 10:52:42 | 1 minute 59 seconds | 12小时 | | jetpack_clean_nonces | 2018-12-06 11:08:49 | 18 minutes 6 seconds | 1小时 | 。。。 +------------------------------------------+---------------------+-----------------------+------------+
$wp cron event list +------------------------------------------+---------------------+-----------------------+------------+ | hook | next_run_gmt | next_run_relative | recurrence | +------------------------------------------+---------------------+-----------------------+------------+ | jetpack_sync_cron | 2018-12-07 03:53:55 | 41 seconds | 5 minutes | | jetpack_sync_full_cron | 2018-12-07 03:53:55 | 41 seconds | 5 minutes | | jetpack_display_posts_widget_cron_update | 2018-12-07 03:58:49 | 5 minutes 35 seconds | 10 minutes | | jetpack_clean_nonces | 2018-12-07 04:08:49 | 15 minutes 35 seconds | 1小时 | 。。。 +------------------------------------------+---------------------+-----------------------+------------+
PHP Notice: Undefined index: HTTP_HOST
if (defined(‘WP_CLI‘) && WP_CLI) { $_SERVER[‘HTTP_HOST‘] = ‘localhost‘; }
Wordpress性能优化:使用crontab+wp-cli代替wp-cron
标签:l命令 响应 conf 文档 hook git sts font 调用
原文地址:https://www.cnblogs.com/pheye/p/10082214.html