[wp-trac] [WordPress Trac] #36602: Improvement to redirect_canonical with category permalink
WordPress Trac
noreply at wordpress.org
Wed Apr 20 13:01:28 UTC 2016
#36602: Improvement to redirect_canonical with category permalink
--------------------------+-----------------------------
Reporter: spacedmonkey | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 3.0
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
If you are using category in permalink, the redirect_canonical calls
wp_get_object_terms get categories on the current post. As
wp_get_object_terms is not cached, it results in an sql query. This is a
performance hit for sites using object caching. get_the_terms should be
used instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36602>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list