Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#41348 closed enhancement (fixed)

Improved caching on WP_Comment_Query

Reported by: spacedmonkey Owned by: boonebgorges
Priority: normal Milestone: 4.9
Component: General Version: 3.1
Severity: normal Keywords: has-patch has-unit-tests
Cc: Focuses:

Description

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

Attachments (1)

41348.diff​ (2.8 KB ) - added by spacedmonkey 9 years ago.

Download all attachments as: .zip

Change History (4)

#1 @flixos90
9 years ago

  • Owner set to boonebgorges
  • Status new → reviewing

@boonebgorges I committed [41059] recently, which is pretty much the same change for WP_Site_Query, just in case you wanna compare.

#2 @boonebgorges
9 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 41190:

Comments: Ignore the 'fields' parameter in the comment query cache.

WP_Comment_Query always queries runs an ID query, and so is unaffected
by the 'fields' parameter. As such, 'fields' can be ignored when building
a cache key for the results of the ID query.

Props spacedmonkey.
Fixes #41348.

#3 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review → 4.9
Note: See TracTickets for help on using tickets.