|
|
kusonico
发表于 2007-12-27 16:41:56
|
显示全部楼层
貌似暂时解决问题了,网上搜索了一天
我看了一下wp_options表里的cron字段
复制出来后发现都是类似于
a:2:{s:8:"schedule";b:0;s:4:"args";a:0:{}}}}i:1197779846;
a:1:{s:8:"do_pings";a:1:{s:32:"40cd750bba9870f18aada2478b24840a";
之类的东西
这个字段里的内容有940多K!
在wp的support里找到一个解释
http://wordpress.org/support/topic/121680
You have 17 instances of "do_pings" scheduled but which can't seem to run. These are scheduled whenever you make a new post. Their purpose is to process the pingbacks and trackbacks for that post. They also handle enclosures and such.
The best way to get rid of them is to let them process, except that they can't for some reason. I'm guessing that your server is not allowing outside connections or something and so they hang indefinitely.
A temporary fix: Add this to your theme's functions.php file:
remove_action('do_pings', 'do_all_pings', 10, 1);
That will let those do_pings process through, doing nothing, and then getting removed. However, this will also stop pingbacks/trackbacks/enclosures from working. But if that's acceptable to you, there you go.
再新建了一个wp,空数据库发布了两篇文章
发现cron字段里的内容只有a:1:{s:7:"version";i:2;}
于是将cron字段里内容替换为a:1:{s:7:"version";i:2;}
以防万一再将模版里的functions.php加上
remove_action('do_pings', 'do_all_pings', 10, 1);
貌似pingbacks/trackbacks/enclosures不能使用了.我想我也用不到那些东西
发信给support让他解除了wp_cron.php的封锁
自己浏览了一下.再也不敢用sitemap生成器了.
现在看邮箱都是提心吊胆的.生怕又收到scipts disabled的信
BTW:虽然wp_cron.php被封锁了WP还能正常使用,但是最好暂时修改config将网站关闭
在http://trac.wordpress.org/ticket/3713这里说到
Missing wp-cron.php might put huge stress on the Server
貌似因为死循环什么的
[ 本帖最后由 kusonico 于 2007-12-27 04:44 PM 编辑 ] |
|