[wp-trac] [WordPress Trac] #63021: Lazy load user meta

WordPress Trac noreply at wordpress.org
Mon Oct 20 19:59:33 UTC 2025


#63021: Lazy load user meta
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.9
Component:  Users                                |     Version:  4.4
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  testing needs-dev-note dev-feedback commit     |  performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60989" 60989]:
 {{{
 #!CommitTicketReference repository="" revision="60989"
 Users: Lazy-load user meta.

 In [36566], a framework for lazily loading metadata was introduced,
 initially supporting term and comment meta. This commit extends that
 support to user meta.

 User meta can contain a large amount of data that is not always needed,
 particularly on the front end. To address this, cache_users() now calls
 the new function wp_lazyload_user_meta(). This function accepts an array
 of user IDs and adds them to the queue of metadata to be lazily loaded.

 Follows on from [55671], [55747].

 Props spacedmonkey, westonruter.
 Fixes #63021.
 }}}

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


More information about the wp-trac mailing list