[wp-trac] [WordPress Trac] #59173: Improve optimizations of get_site_url by not using switch_to_blog

WordPress Trac noreply at wordpress.org
Thu Aug 24 20:57:33 UTC 2023


#59173: Improve optimizations of get_site_url by not using switch_to_blog
-------------------------------------+-------------------------------------
 Reporter:  PerS                     |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Networks and Sites       |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  multisite, performance
-------------------------------------+-------------------------------------

Comment (by jeremyfelt):

 I don't think wp_blogs.domain + wp_blogs.path is a one to one replacement
 for the `siteurl` option. It's more aligned with the `home` option
 instead.

 I don't have a specific example where this would break, but I'd be very
 wary of changing the existing option call.

 One particular case that would need testing that is probably not covered
 in our existing tests is WordPress installed in a subdirectory and
 configured for multisite.

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


More information about the wp-trac mailing list