devers
Member
Posted 3 months ago #
I'm having a problem similar to this (actually, seemingly identical) except that I am only trying to display 200 posts. More posts exist, but WordPress seems to fail to get any more than about 150. This is after I increased PHP's memory limit to 256mb. Previously, it could only get about 60 pages using 32mb of memory. This seems like a lot of memory to get relatively few posts. Could there be another factor that is limiting the WP_Query results?
mubojason
Member
Posted 3 months ago #
i get the same problem, and find out to Solve it:
~/wp-includes/default-constants.php
#line 23:
'WP_MEMORY_LIMIT','32M'
change the number more than you need,
like 64M or more;
It could also be the number of queries requested, many hosts limit it.
Add this to the end of footer.php of your theme to get time and # of requests:
<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
Then look at source code (scroll to bottom).
So many posts per page can cause server performance issues.