[wp-trac] [WordPress Trac] #57496: Lazy load post meta

WordPress Trac noreply at wordpress.org
Wed Jan 18 12:33:40 UTC 2023


#57496: Lazy load post meta
-------------------------------+-----------------------------
 Reporter:  spacedmonkey       |      Owner:  (none)
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  4.5
 Severity:  normal             |   Keywords:
  Focuses:  performance        |
-------------------------------+-----------------------------
 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.

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


More information about the wp-trac mailing list