最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp cron - Missed scheduled WordPress

programmeradmin0浏览0评论

I am currently in version 3.1 of WordPress and I have a problem with planning my post. In fact, whenever I plan a post, it is written: "Scheduled missed. Could you help me please.

I am currently in version 3.1 of WordPress and I have a problem with planning my post. In fact, whenever I plan a post, it is written: "Scheduled missed. Could you help me please.

Share Improve this question edited Aug 28, 2020 at 14:20 SparkAndShine 2332 gold badges5 silver badges14 bronze badges asked Apr 26, 2011 at 14:33 OnitaOnita 1534 bronze badges 1
  • A similar question is here: wordpress.stackexchange/questions/13673/missed-schedule – Simon East Commented Aug 3, 2015 at 3:05
Add a comment  | 

2 Answers 2

Reset to default 5

Due to your server configuration, you may need to use the alternate cron method, which uses redirect rather than http loopback.

Try adding the following to your wp-config.php file:

// Alternate cron method 
define( 'ALTERNATE_WP_CRON', true );

The missed schedule is due to wordpress timeout in the cron process. Go to wp-include/cron.php, around line no 248, change the value of 0.01 to a larger number.

in my case, I changed from : wp_remote_post( $cron_url, array( 'timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) ) );

to

wp_remote_post( $cron_url, array( 'timeout' => 7, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) ) );

remember this cron.php is a wordpress core file, it will get overwritten when you update your wordpress core. So after every update, remember to change the value again.

If this doesn't work for you, make sure your timezone setting is set correctly. The setting can be found at: Settings > General

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论