WordPress.org

Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#16253 closed defect (bug)

Object term cache not working for taxonomy query page - resulting 200 queries for 10 posts — at Version 1

Reported by: badskills Owned by:
Milestone: Priority: normal
Severity: major Version: 3.0.4
Component: Cache API Keywords:
Focuses: Cc:

Description (last modified by scribu)

This problem is very similar to #12989 but now it happen when you query a taxonomy,

$terms = get_object_term_cache( $id, $taxonomy );
in get_the_terms() Return nothing

$link = get_term_link( $term, $taxonomy );
in get_the_term_list() also increase queries 

i am not that lucky with wordpress(Coding) to provide a patch but it took me lots of time to figure out why its happening.

Change History (1)

#1 @scribu
7 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.