[wp-trac] [WordPress Trac] #46357: Don't prime site meta caches core functions

WordPress Trac noreply at wordpress.org
Wed Feb 27 08:54:42 UTC 2019


#46357: Don't prime site meta caches core functions
------------------------------------+-----------------------------
 Reporter:  spacedmonkey            |      Owner:  (none)
     Type:  enhancement             |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Networks and Sites      |    Version:  5.1
 Severity:  normal                  |   Keywords:  needs-patch
  Focuses:  multisite, performance  |
------------------------------------+-----------------------------
 `WP_Site_Query` and `get_sites` are used in core functions to query the
 blogs table. As of [https://core.trac.wordpress.org/changeset/42836 42836]
 site meta is in core and by default, primes the site meta caches on every
 `WP_Site_Query` call. However, in many places it is extremely unlikely the
 site meta will be required or used. For performance reasons, these calls
 that do not require site meta should be changed.

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


More information about the wp-trac mailing list