WordPress.org

Make WordPress Core

Opened 22 months ago

Last modified 7 months ago

#45839 new enhancement

Use site meta for blog details

Reported by: spacedmonkey Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6
Component: Networks and Sites Keywords: has-patch 2nd-opinion
Focuses: multisite Cc:

Description

Currently details about each site is received from each site's options. This means, that every time a WP_Site object is loaded, it may end up calling switch_to_blog. This is expensive and wasteful. This fields should be cached in site meta, which will improve load times and makes it easier to manage.

Attachments (1)

45839.diff (4.7 KB) - added by spacedmonkey 22 months ago.

Download all attachments as: .zip

Change History (2)

@spacedmonkey
22 months ago

#1 @spacedmonkey
7 months ago

  • Keywords has-patch 2nd-opinion added
Note: See TracTickets for help on using tickets.