[wp-trac] [WordPress Trac] #55716: Prime users in cache in WP_Query
WordPress Trac
noreply at wordpress.org
Tue May 17 11:02:55 UTC 2022
#55716: Prime users in cache in WP_Query
--------------------------------------+-----------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version: 1.5
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: performance
--------------------------------------+-----------------------------
Comment (by spacedmonkey):
I have created a patch for this, including unit tests.
Author data for not need to be primed until we get to loop around posts
using the `the_post` method. Add a new `_prime_user_caches` function to
ensure that user meta is correctly primed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55716#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list