[wp-trac] [WordPress Trac] #56100: Call update_post_author_caches in WP_Posts_List_Table class
WordPress Trac
noreply at wordpress.org
Tue Jul 19 17:36:38 UTC 2022
#56100: Call update_post_author_caches in WP_Posts_List_Table class
-------------------------------------+-------------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has- | Focuses: administration,
patch | performance
-------------------------------------+-------------------------------------
Comment (by desrosj):
What about adding this to `update_post_caches()`?
[attachment:"update_post_caches.diff"] is a proof of concept.
{{{
Updates post, term, and metadata caches for a list of post objects.
}}}
Authors are really the only thing not being primed for posts (except
comments, but that's a separate thing that is not always required). It's
reasonable to consider author information is a required part of a post.
I'm not aware if there is a historical reason why this was left out
previously, though.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56100#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list