Ticket #1005 (closed defect (bug): fixed)
[optimization] update_post_caches() unnecessarily includes posts table in SQL
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 1.5.1 |
| Severity: | trivial | Keywords: | |
| 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
Change History
- Owner changed from anonymous to matt
- fixed_in_version set to 1.5.1
- Status changed from new to closed
- Resolution changed from 10 to 20
Nice patch
Note: See
TracTickets for help on using
tickets.

