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 Initial Version

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

Description

This problem is very similar to http://core.trac.wordpress.org/ticket/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 (0)

Note: See TracTickets for help on using tickets.