Ticket #1005 (closed defect (bug): fixed)

Opened 7 years ago

Last modified 7 years ago

[optimization] update_post_caches() unnecessarily includes posts table in SQL

Reported by: coffee2code Owned by: matt
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

bug1005_functions.diff Download (995 bytes) - added by coffee2code 7 years ago.

Change History

  • Patch set to No
  • Patch changed from No to Yes

comment:3   matt7 years ago

  • 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.