WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#15028 closed defect (bug) (fixed)

get_boundary_post() needlessly loads term & postmeta cache

Reported by: dd32 Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version:
Component: Performance Keywords:
Focuses: Cc:

Description

get_boundary_post() needlessly fills the term & postmeta cache for the matched post.

As the only information about the post needed is the Title & URL, loading the terms & postmeta is generally just an extra 2 wasted queries.

The only difference will be URL's which contain a Taxonomy or value from Post Meta, In those cases, the values will be loaded on demand after an extra cache miss.

Change History (2)

comment:1 dd324 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [15701]) Do not load Taxonomy cache & Postmeta cache in get_boundary_post(). Fixes #15028

comment:2 jeremyclarke4 years ago

  • Cc jer@… added

Woot thanks to both of you!

Note: See TracTickets for help on using tickets.