[wp-trac] [WordPress Trac] #51469: Use `_prime_post_caches` for speeding up cached `get_pages` call

WordPress Trac noreply at wordpress.org
Wed Oct 7 17:25:43 UTC 2020


#51469: Use `_prime_post_caches` for speeding up cached `get_pages` call
-------------------------------+------------------------------
 Reporter:  david.binda        |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:  performance
-------------------------------+------------------------------

Comment (by david.binda):

 > But also sites without a persistent cache backend could benefit from the
 bulk SQL query constructed by the _prime_post_caches function, instead of
 fetching each page via individual SQL query.

 This does not apply, as the initial `wp_cache_get` on a subsequent request
 on a site without persistent object cache backend would not get anything.

 But, IHMO, the rest of the report still applies for sites with persistent
 object cache backend :)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51469#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list