[wp-trac] [WordPress Trac] #59173: Improve optimizations of get_site_url by not using switch_to_blog
WordPress Trac
noreply at wordpress.org
Wed Aug 23 15:20:45 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 PerS):
Hi John,
The existing unit tests should be sufficience, and I've added a domain
mapping check.
Performance wise, may main reason for this patch is to avoid
`switch_to_blog`, event with the latest fixes it's a slow function. And
for a super admin it's triggered a lot (ref query monitor).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59173#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list