[wp-trac] [WordPress Trac] #42299: Change params on get_site_by_path
WordPress Trac
noreply at wordpress.org
Sat Oct 21 23:24:08 UTC 2017
#42299: Change params on get_site_by_path
--------------------------------+-----------------------------
Reporter: spacedmonkey | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 4.6
Severity: normal | Keywords: has-patch
Focuses: multisite |
--------------------------------+-----------------------------
In get_site_by_path, it calls get_sites. In most cases in domain and path
only have one elemeent in their arrays. To improve performance, changing
it to `domain` instead of `domain__in` will increase likelyhood it will
hit an existing cache.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42299>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list