Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#1005 closed defect (bug) (fixed)

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

Reported by: coffee2code's profile coffee2code Owned by: matt's profile matt
Milestone: Priority: normal
Severity: trivial Version: 1.5.1
Component: Administration Keywords:
Focuses: Cc:


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)

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

Download all attachments as: .zip

Change History (4)

#1 @coffee2code
19 years ago

  • Patch set to No

#2 @coffee2code
19 years ago

  • Patch changed from No to Yes

#3 @matt
19 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 20
  • Status changed from new to closed

Nice patch

Note: See TracTickets for help on using tickets.