[wp-trac] [WordPress Trac] #16687: %postname% permalinks should not trigger verbose rewrite rules

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 14 20:00:22 UTC 2011


#16687: %postname% permalinks should not trigger verbose rewrite rules
-----------------------------+------------------
 Reporter:  nacin            |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  3.3
Component:  Rewrite Rules    |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------

Comment (by johanee):

 The patch has a bug in comment feeds for pages and attachments
 (/some/page/feed). You get either 404 or redirected to the actual
 page/attachment. If there is a post with same name as page you get
 comments for the post.

 The rest seem to work. I get the correct stuff for a random selection of
 posts, pages, attachments and categories. Pages get precedence over posts.
 Post, post comment and category feeds work.

 Performance for page lookup:
 * depth 1: 0.009s, 11 queries (was 0,055s and 5 queries)
 * depth 5: 0,021s, 47 queries (was 0,055s and 17 queries)
 * depth 10: 0,034s, 92 queries (was 0,056s and 32 queries)
 * depth 15: 0,049s, 137 queries (was 0,065s and 47 queries)
 * depth 20: 0,062s, 182 queries (was 0,076s and 62 queries)

 Seems reasonable for any even close to sane depth. A number of queries but
 they seem fast enough.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16687#comment:33>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list