[wp-trac] [WordPress Trac] #61097: Filter `wp_count_posts()` query before execution to avoid slow query

WordPress Trac noreply at wordpress.org
Tue Jun 25 17:23:24 UTC 2024


#61097: Filter `wp_count_posts()` query before execution to avoid slow query
-------------------------------+------------------------------
 Reporter:  rcorrales          |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  6.5
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  performance
-------------------------------+------------------------------

Comment (by rcorrales):

 @johnbillion I went ahead and created a separate ticket (#61502) for
 focusing on the performance improvements, while we add a new filter for
 this query using this ticket.

 @snehapatil02 Thanks for submitting the PR! I referenced it in a comment
 in the new ticket.

 It seems like it can't be added to the "Pull Requests" section of the new
 ticket unless it's mentioned in the PR description.

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


More information about the wp-trac mailing list