[wp-trac] [WordPress Trac] #58185: Lazy load site meta

WordPress Trac noreply at wordpress.org
Mon May 15 08:36:52 UTC 2023


#58185: Lazy load site meta
---------------------------------------------+-----------------------------
 Reporter:  spacedmonkey                     |       Owner:  spacedmonkey
     Type:  enhancement                      |      Status:  reopened
 Priority:  normal                           |   Milestone:  6.3
Component:  Networks and Sites               |     Version:  5.1
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  multisite,
                                             |  performance
---------------------------------------------+-----------------------------

Comment (by spacedmonkey):

 @dd32 Good catchup.

 We have a number of options.

 1. Require the `class-wp-metadata-lazyloader.php` file before line 138.
 Maybe 135.
 2. In `wp_metadata_lazyloader` function check if `WP_Metadata_Lazyloader`
 class exists and require the file there. We could even remove line in wp-
 settings.php as well if we do this.
 3. In `wp_lazyload_site_meta` check it `WP_Metadata_Lazyloader` classes
 exists and fallback to `update_sitemeta_cache`.

 All of which have up sides and down sides. Personally like option 2, but
 option 3 might be the simplest fixes.

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


More information about the wp-trac mailing list