[wp-trac] [WordPress Trac] #48408: Introduce eagerloading of meta data

WordPress Trac noreply at wordpress.org
Wed Oct 23 13:58:51 UTC 2019


#48408: Introduce eagerloading of meta data
-------------------------------+------------------------------
 Reporter:  mattiasf           |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Query              |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  performance
-------------------------------+------------------------------
Changes (by ocean90):

 * keywords:   => reporter-feedback
 * focuses:  performance, coding-standards => performance
 * severity:  major => normal


Comment:

 Hello @mattiasf, welcome to WordPress Trac!

 I think what you're looking for is the `update_post_meta_cache` argument
 of `WP_Query`, see
 https://developer.wordpress.org/reference/classes/wp_query/#caching-
 parameters. When set to true it fetches all meta data in one query by
 calling `update_postmeta_cache()`.

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


More information about the wp-trac mailing list