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

WordPress Trac noreply at wordpress.org
Thu Jan 14 13:21:47 UTC 2021


#51469: Use `_prime_post_caches` for speeding up cached `get_pages` call
-------------------------------------+-----------------------------
 Reporter:  david.binda              |       Owner:  SergeyBiryukov
     Type:  enhancement              |      Status:  reviewing
 Priority:  normal                   |   Milestone:  5.7
Component:  Posts, Post Types        |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  performance
-------------------------------------+-----------------------------
Changes (by hellofromTonya):

 * keywords:  has-patch => has-patch needs-testing


Comment:

 Next steps for this ticket (from core scrub):

 Sergey will "confirm the initial issue and verify that the patch does fix
 it as expected."

 Adding `needs-testing` to test for the performance gains:

 From Sergey:
 >Would be great to confirm the performance improvements, looks good to go
 otherwise

 Steps to test the performance improvements:
 >1. Use a persistent object cache (Redis or Memcached).
 >2. Have a site with a lot of pages.
 >3. Go to the the Pages screen (since it uses the get_pages() function
 being patched here) and measure the response time (TTFB, time to first
 byte).
 >4. Apply the patch and see if there's any improvement.

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


More information about the wp-trac mailing list