[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 18:20:08 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
--------------------------------+------------------------------
Comment (by lukecavanagh):
https://github.com/WordPress/WordPress/blob/master/wp-
includes/meta.php#L826
Replying to [comment:3 macprawn]:
> 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:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list