[wp-trac] [WordPress Trac] #59492: WP_Query::generate_cache_key can create different hash for same queries leading to cache miss.

WordPress Trac noreply at wordpress.org
Wed Oct 11 16:09:26 UTC 2023


#59492: WP_Query::generate_cache_key can create different hash for same queries
leading to cache miss.
--------------------------+--------------------------
 Reporter:  thekt12       |       Owner:  thekt12
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Database      |     Version:
 Severity:  normal        |  Resolution:  duplicate
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+--------------------------
Changes (by joemcgill):

 * status:  assigned => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 After discussing with @thekt12 and @spacedmonkey, I think it's best to
 handle normalizing cache keys for query classes all in one place to keep
 the context all together. I'm closing this as a duplicate of #59516.

 @thekt12 could you update your PR to point to the other ticket when you
 have a chance?

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


More information about the wp-trac mailing list