[wp-trac] [WordPress Trac] #39716: Improve update_meta_cache's performance when called with one object ID

WordPress Trac noreply at wordpress.org
Fri Jan 27 10:53:16 UTC 2017


#39716: Improve update_meta_cache's performance when called with one object ID
--------------------------------+------------------------------
 Reporter:  macprawn            |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:  trunk
 Severity:  normal              |  Resolution:
 Keywords:  close               |     Focuses:  performance
--------------------------------+------------------------------
Changes (by macprawn):

 * keywords:  close reporter-feedback => close


Comment:

 Thanks guys - first time contributing here, so please let me know if I'm
 doing it wrong...

 @pento yes, I do have an example:

 wp-includes/meta.php, line 826

 As more and more people use custom fields, this can become problematic
 when you have to "get_post_meta" repeatedly, in a loop or multiple times
 to access multiple custom fields for this one post.

 Thanks!

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


More information about the wp-trac mailing list