[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 00:35:45 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 dev-feedback                    |  performance
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

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


Comment:

 In [changeset:"54685" 54685]:
 {{{
 #!CommitTicketReference repository="" revision="54685"
 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 [54634].

 Props spacedmonkey, jorbin, azaozz, hellofromtonya, mukesh27,
 peterwilsoncc, desrosj, audrasjb, adamsilverstein, flixos90,
 davidbaumwald, joedolson, sergeybiryukov.
 Fixes #56802.
 }}}

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


More information about the wp-trac mailing list