[wp-trac] [WordPress Trac] #57802: Prime post cache in WP_Comments_List_Table
WordPress Trac
noreply at wordpress.org
Fri Mar 10 15:24:16 UTC 2023
#57802: Prime post cache in WP_Comments_List_Table
---------------------------------------------+---------------------------
Reporter: spacedmonkey | Owner: spacedmonkey
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.3
Component: Comments | Version: 3.1
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch commit | Focuses: performance
---------------------------------------------+---------------------------
Changes (by spacedmonkey):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"55513" 55513]:
{{{
#!CommitTicketReference repository="" revision="55513"
Comments: Prime post caches in WP_Comments_List_Table.
In the `WP_Comments_List_Table` class, when the function `get_comments` is
called, pass the parameter `update_comment_post_cache` set to true. This
primes all the related posts for the displayed comments. This improves
performance, as all posts are primed at once.
Props spacedmonkey, adarshposimyth.
Fixes #57802.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57802#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list