wordpress woodstock主题导入demo xml文件 execution time out

1.已设置php.ini max_execution_time = 240

导入显示设置60

2.wp-config.php 添加 set_time_limit(600); 无效

3. .htaccess 添加 php_value max_execution_time 300 无效;

以上两步未验证

4.可能是插件中设置时间问题, wp-content hemeswoodstock-child添加

add_filter( 'http_request_timeout', 'mytheme_bump_request_timeout', 100 );
function mytheme_bump_request_timeout(){
return 300; //Change this to your desired timeout value in ms
}

无效

5.搜索*time_limit ,在wp-includescomment.php 修改@ set_time_limit( 60 ); 为@ set_time_limit( 160 ); 无效,恢复设置。

在wp-includesdeprecated.php 修改@ set_time_limit( 60 ); 为@ set_time_limit( 160 ); 有效。

原文地址:https://www.cnblogs.com/eastegg/p/5573427.html