[wp-trac] [WordPress Trac] #57803: Use wp_cache_get_multiple in fill_descendants

WordPress Trac noreply at wordpress.org
Fri Feb 24 15:57:01 UTC 2023


#57803: Use wp_cache_get_multiple in fill_descendants
--------------------------+----------------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Comments      |    Version:  4.4
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+----------------------------
 In the `fill_descendants` method in `WP_Comment_Query`, there is a loop
 the calls `wp_cache_get`. Instead of getting one key at a time, use
 `wp_cache_get_multiple` and get all keys at once.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57803>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list