[wp-trac] [WordPress Trac] #51469: Use `_prime_post_caches` for speeding up cached `get_pages` call
WordPress Trac
noreply at wordpress.org
Tue May 25 23:40:27 UTC 2021
#51469: Use `_prime_post_caches` for speeding up cached `get_pages` call
-------------------------------------------------+-------------------------
Reporter: david.binda | Owner:
| SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.8
Component: Posts, Post Types | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing has- | Focuses:
testing-info | performance
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"51018" 51018]:
{{{
#!CommitTicketReference repository="" revision="51018"
Posts, Post Types: Speed cached `get_pages()` calls.
This improves performance for sites with persistent cache backend having a
lot of pages requested via the `get_pages() function, by taking advantage
of `wp_cache_get_multiple()` instead of fetching each individual page from
the backend cache server one by one.
It also matches the behaviour of `get_pages()` when the pages are
retrieved from the database.
Props david.binda, hellofromTonya.
Fixes #51469.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51469#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list