Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#41347 closed enhancement (fixed)

Improved caching on WP_Network_Query

Reported by: spacedmonkey Owned by: flixos90
Milestone: 4.9 Priority: normal
Severity: normal Version: 4.6
Component: Networks and Sites Keywords: has-patch has-unit-tests
Focuses: multisite Cc:


As WP_Site_Query are based on the same code, changes that are found in #41197 can also be applied to WP_Network_Query

Attachments (1)

41347.diff (2.7 KB) - added by spacedmonkey 3 years ago.

Download all attachments as: .zip

Change History (4)

3 years ago

#1 @flixos90
3 years ago

  • Component changed from General to Networks and Sites

#2 @flixos90
3 years ago

  • Owner set to flixos90
  • Status changed from new to reviewing

#3 @flixos90
3 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 41063:

Multisite: Improve caching in WP_Network_Query by ignoring the $fields argument.

Prior to this change there were two different cache keys used for the same query. That is because regardless of the $fields argument, the query response will be the same. This was already fixed for WP_Site_Query in [41059].

Props spacedmonkey.
Fixes #41347.

Note: See TracTickets for help on using tickets.