<IfModule mod_dtimeout.c>
<Files ~ ".php">
SetEnvIf Request_URI "index.php" DynamicTimeout=1200
SetEnvIf Request_URI "wp-admin/themes.php" DynamicTimeout=1200
SetEnvIf Request_URI "wp-admin/admin-ajax.php" DynamicTimeout=1200
SetEnvIf Request_URI "wp-admin/admin.php" DynamicTimeout=1200
</Files>
</IfModule>
define( 'WP_MEMORY_LIMIT', '256M' ); # 设置网站PHP内存限制
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); # 设置WP后台内存限制
set_time_limit ( 600 );  # 时间600
post_max_size = 64M
upload_max_filesize = 640M
max_input_vars = 3000
max_execution_time = 300
php_value post_max_size = 64M
php_value upload_max_filesize = 64M
php_value max_input_vars = 3000
php_value max_execution_time = 300

归类于: