Opened 20 years ago
Closed 20 years ago
#1005 closed defect (bug) (fixed)
[optimization] update_post_caches() unnecessarily includes posts table in SQL
Reported by: | coffee2code | Owned by: | matt |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | 1.5.1 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
In wp-includes/functions.php, the function update_post_caches() appears to unnecessarily include the posts table in the SQL statement. The function already has a list of post IDs ($post_ids, assembled from passed in $posts) for which to find matching $wpdb->post2cat.post_id rows to update the posts category cache (what this SQL is there for).
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Nice patch