简体   繁体   English

80000个帖子后,Wordpress Admin帖子列表未显示

[英]Wordpress Admin Posts list is not showing after 80000 posts

I have wordpress website with more than 80000 posts. 我有超过80000个帖子的wordpress网站。 Now posts list in admin panel is not showing (mysite.com/wp-admin/edit.php). 现在,管理面板中的帖子列表未显示(mysite.com/wp-admin/edit.php)。 Request returned error "maximum allowed merory". 请求返回错误“最大允许内存”。 Then I changed in wp-config 然后我在wp-config中更改了

define( 'WP_MEMORY_LIMIT', '1024M' );
define( 'WP_MAX_MEMORY_LIMIT', '3072M' ); 

Then it returned me error "maximume execution time". 然后它返回了错误“最大执行时间”。 I changed it into 150 seconds. 我将其更改为150秒。 And now request not returns any error, returns only blank page. 现在请求不返回任何错误,仅返回空白页。

But in website queries with WP_Query and get_posts working very well. 但是在使用WP_Query和get_posts的网站查询中,效果很好。 What can be problem? 有什么问题吗?

Create a file named php.ini and paste the below code in it and upload it to WordPress root folder as well as to wp-content , wp-admin folders in order to increase the memory limit and maximum execution time. 创建一个名为php.ini ,并将以下代码粘贴到其中,然后将其上传到WordPress根文件夹以及wp-contentwp-admin文件夹,以增加内存限制和最大执行时间。 This will solve your problem. 这样可以解决您的问题。

memory_limit = 1024M;
max_execution_time = 150;

Change the values as you want. 根据需要更改值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM