Opened 4 months ago
Last modified 3 weeks ago
#57496 assigned enhancement
Lazy load post meta
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 4.5 |
Component: | Posts, Post Types | Keywords: | |
Focuses: | performance | Cc: |
Description
Introduced in [36566], there is was a API introduced to lazily load metadata using the class WP_Metadata_Lazyloader
. Currently this is only used comment and term meta data. However, this could be expanded to support over meta types like posts.
WP_Query is now run multiple lines per page load. Meaning that post meta is primed even when it is not needed. Using the WP_Metadata_Lazyloader
class, post meta could be loaded on demand and save database queries and object cache lookups.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Related: #57498