Make WordPress Core

Opened 6 years ago

Last modified 4 years ago

#45839 new enhancement

Use site meta for blog details

Reported by: spacedmonkey's profile 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 6 years ago.

Download all attachments as: .zip

Change History (2)

@spacedmonkey
6 years ago

#1 @spacedmonkey
4 years ago

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