wp-cron为何占用这么多资源?

wp-cron为何占用这么多资源?

来自 /var/logs/httpd/error-log:

[Thu Apr 22 01:41:15 2010] [notice] mod_fcgid: call /var/www/vhosts/mydomain.com/httpdocs/wp-cron.php with wrapper /usr/bin/php-cgi  
[Thu Apr 22 01:41:15 2010] [notice] mod_fcgid: server /var/www/vhosts/mydomain.com/httpdocs/wp-cron.php(17999) started  
...The previous line shows up 8661 times...

Cron 里有什么?

Apr 22, 2010 @ 18:25 (1271960731)    Twice Daily    wp_version_check  
Apr 22, 2010 @ 18:25 (1271960731)    Twice Daily    wp_update_plugins  
Apr 22, 2010 @ 18:25 (1271960731)    Twice Daily    wp_update_themes  
Apr 23, 2010 @ 12:21 (1272025294)    Once Daily wp_scheduled_delete  

使用 WP 2.9.2 将 CentoOS 5/plesk 9.3/php 作为 FastCGI/suExec 运行

提前致谢。

答案1

请求是wp-cron.php来自本地主机,还是其他地方?如果是前者,那么 WordPress 的计时似乎出了问题(请参阅spawn_cron()wp-includes/cron.php,如果是后者 — 通过.htaccess或类似方式禁用对它的访问。

相关内容