[wp-trac] [WordPress Trac] #55619: Different order of params, results in a different cache key in query classes.

WordPress Trac noreply at wordpress.org
Tue Apr 26 09:53:12 UTC 2022


#55619: Different order of params, results in a different cache key in query
classes.
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Cache API     |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  performance   |
--------------------------+-----------------------------
 In [52970] [53169] [53097] [53098], the cache key generation was improved.
 However while testing, it was noted that depending on when order in which
 params are sent to the query classes, this may result in a different cache
 to generated.

 To be safe, the array used generate the cache key, should be sorted.

 See ##55352, #55460, #55462, #55461.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55619>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list