[wp-trac] [WordPress Trac] #34732: Memory exhaustion on posts with thousands of comments
WordPress Trac
noreply at wordpress.org
Wed Nov 18 22:01:07 UTC 2015
#34732: Memory exhaustion on posts with thousands of comments
--------------------------+-------------------
Reporter: pento | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Comments | Version: trunk
Severity: blocker | Keywords:
Focuses: performance |
--------------------------+-------------------
The recent changes to `WP_Comment_Query::get_comments()` passes an array
of all commend IDs to `_prime_comment_caches()`. This loads all of those
comments, and tries to cache them.
On posts with thousands of comments, this causes memory exhaustion - we're
seeing this on WP.com posts with (approximately) more than 10,000
comments.
This behaviour is a regression in 4.4 - previously, there were no memory
exhaustion errors on these posts.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34732>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list