[wp-trac] [WordPress Trac] #59516: Improve cache key generation in the WP_Query class

WordPress Trac noreply at wordpress.org
Tue Jan 28 03:06:01 UTC 2025


#59516: Improve cache key generation in the WP_Query class
-----------------------------------------------+--------------------------
 Reporter:  spacedmonkey                       |       Owner:  pbearne
     Type:  defect (bug)                       |      Status:  accepted
 Priority:  normal                             |   Milestone:  6.8
Component:  Query                              |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch changes-requested early  |     Focuses:  performance
-----------------------------------------------+--------------------------

Comment (by spacedmonkey):

 @peterwilsoncc Question: Are there any query parameters that could string
 or int? Parameters like `p`, `page_id`, `attachment_id`, `offset`,
 `posts_per_page`, `year`, `monthnum`, `day`, `w`, `paged`, `hour`,
 `minute`, `second`, `menu_order`, `tag_id`, `page` and `author`, can all
 be int or string with int values. Should all these values be cases to int?

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


More information about the wp-trac mailing list