[wp-trac] [WordPress Trac] #56802: Query: Post IDs cached for search and other 'LIKE' queries are unreachable

WordPress Trac noreply at wordpress.org
Tue Oct 25 18:31:52 UTC 2022


#56802: Query: Post IDs cached for search and other 'LIKE' queries are unreachable
-------------------------------------------------+-------------------------
 Reporter:  dlh                                  |       Owner:
                                                 |  peterwilsoncc
     Type:  defect (bug)                         |      Status:  closed
 Priority:  high                                 |   Milestone:  6.1
Component:  Query                                |     Version:  6.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  testing commit fixed-major dev-reviewed        |  performance
-------------------------------------------------+-------------------------
Changes (by davidbaumwald):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54692" 54692]:
 {{{
 #!CommitTicketReference repository="" revision="54692"
 Query: Move cache key generation to its own method.

 Introduce `WP_Query::generate_cache_key()` for generating the cache key
 used by the main database query.

 This removes the need for a filter to test that cache keys do not include
 the WPDB placeholder causing unreachable cache keys. The tests now call
 `WP_Query::generate_cache_key()` directly.

 The filter `wp_query_cache_key` is removed as a hard deprecation. The
 filter was not included in a stable release.

 Follow up to [54685].

 Props spacedmonkey, jorbin, azaozz, hellofromtonya, mukesh27,
 peterwilsoncc, desrosj, audrasjb, adamsilverstein, flixos90,
 davidbaumwald, joedolson, sergeybiryukov.
 Reviewed by mikeschroder.
 Merges [54685] to the 6.1 branch.
 Fixes #56802.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56802#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list