Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#55460 closed enhancement (fixed)

Improve cache key generation in WP_Comment_Query

Reported by: spacedmonkey Owned by: spacedmonkey
Priority: normal Milestone: 6.0
Component: Comments Version: 3.1
Severity: normal Keywords: good-first-bug has-patch has-unit-tests commit
Cc: Focuses: performance

Description

Follow on from #55352.

Improve cache key generation in WP_Comment_Query to improve likely that cache is reused. Unsetting update_comment_meta_cache and update_comment_post_cache, would improve cache keys, as this fields do not affect the cache.

Change History (6)

#1 @spacedmonkey
5 years ago

  • Summary Improve comment query cache key generation → Improve cache key generation in WP_Comment_Query

This ticket was mentioned in ​PR #2572 on ​WordPress/wordpress-develop by ​uday-kokitkar.


5 years ago
#2

  • Keywords has-patch has-unit-tests added; needs-patch removed

#3 @spacedmonkey
5 years ago

  • Milestone Future Release → 6.0
  • Owner set to spacedmonkey
  • Status new → assigned

#4 @spacedmonkey
5 years ago

  • Keywords commit added

Patch look great @uday17035 . Adding the commit keyword, in hopes of getting this patch into 6.0 release.

#5 @peterwilsoncc
5 years ago

  • Resolution → fixed
  • Status assigned → closed

In 53169:

Cache API: Improve cache key generation in WP_Comment_Query.

Discard the parameters update_comment_meta_cache and update_comment_post_cache when generating the cache key as neither have an effect on the database query generated.

Props uday17035, spacedmonkey.
Fixes #55460.

Note: See TracTickets for help on using tickets.