[wp-trac] [WordPress Trac] #15396: Queries not being cached
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 11 23:20:32 UTC 2010
#15396: Queries not being cached
--------------------------+-------------------------------------------------
Reporter: sivel | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Cache | Version: 3.1
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Comment(by nacin):
Those extra taxonomy queries should definitely be covered by the slurp.
So, the extra post_format queries are from wp_get_object_terms(), when
$fields = names. The problem is, we're not accounting for the fact that
we've already slurped $fields = all, at which point the cache should be
skipped. wp_get_object_terms() doesn't fetch from the the cache
internally.
We're calling $fields = names in get_post_format(). We should correct
that.
Not sure where the post_tag ones are coming from.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15396#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list