WordPress.org

Make WordPress Core

Opened 7 weeks ago

Last modified 2 weeks ago

#42299 assigned enhancement

Change params on get_site_by_path

Reported by: spacedmonkey Owned by: jeremyfelt
Milestone: 5.0 Priority: normal
Severity: normal Version: 4.6
Component: Networks and Sites Keywords: has-patch
Focuses: multisite Cc:

Description

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.

Attachments (1)

42299.diff (727 bytes) - added by spacedmonkey 7 weeks ago.

Download all attachments as: .zip

Change History (5)

@spacedmonkey
7 weeks ago

This ticket was mentioned in Slack in #core-multisite by spacedmonkey. View the logs.


7 weeks ago

#2 @spacedmonkey
4 weeks ago

  • Milestone changed from Awaiting Review to 5.0

#3 @spacedmonkey
4 weeks ago

  • Owner set to jeremyfelt
  • Status changed from new to assigned

This ticket was mentioned in Slack in #core-multisite by flixos90. View the logs.


2 weeks ago

Note: See TracTickets for help on using tickets.