[wp-trac] [WordPress Trac] #57150: Implement wp_cache_get_multiple() in wp_queue_posts_for_term_meta_lazyload()
WordPress Trac
noreply at wordpress.org
Tue Feb 7 12:08:03 UTC 2023
#57150: Implement wp_cache_get_multiple() in
wp_queue_posts_for_term_meta_lazyload()
-------------------------------------------------+-------------------------
Reporter: ocean90 | Owner:
| spacedmonkey
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback has-unit- | Focuses:
tests | performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"55252" 55252]:
{{{
#!CommitTicketReference repository="" revision="55252"
Taxonomy: Implement `wp_cache_get_multiple` in
`wp_queue_posts_for_term_meta_lazyload`.
In [47938] the `wp_cache_get_multiple` function was added to core. This
function allows for multiple cache keys to be received from cache in a
single function call. `wp_queue_posts_for_term_meta_lazyload` function
does many calls to cache. To get taxonomy relationship for multiple posts
and get all terms. Replace calls to `get_object_term_cache` with calls to
`wp_cache_get_multiple` and `_prime_term_caches`. This improves
performance on sites that implement the `wp_cache_get_multiple` in their
object caching drop-in.
Props spacedmonkey, ocean90, SergeyBiryukov, costdev, flixos90, joemcgill,
10upsimon.
Fixes #57150.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57150#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list