[wp-trac] [WordPress Trac] #34732: Memory exhaustion on posts with thousands of comments
WordPress Trac
noreply at wordpress.org
Wed Nov 18 22:07:25 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 | Resolution:
Keywords: | Focuses: performance
--------------------------+--------------------------
Comment (by pento):
It seems to be happening on normal comment page load. We've just hacked in
a hard limit for now, but users are noticing that their massive comment
threads aren't completely loading anymore. :-)
{{{
function wpcom_limit_comment_query( &$obj ) {
if ( isset( $obj->query_vars['number'] ) &&
$obj->query_vars['number'] === '' )
$obj->query_vars['number'] = '10000';
}
add_action( 'pre_get_comments', 'wpcom_limit_comment_query' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34732#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list