[wp-hackers] Permalink Performance
rbilesky at gmail.com
Thu Oct 21 19:39:54 UTC 2010
I thought that it should still work, thanks for confirming that. I did
create a tarc ticket http://core.trac.wordpress.org/ticket/15187 because I
think the issue is probably that wordpress detects if the permalink starts
with a numeric value (like %year%) and if it does not just assumes to force
verbose page rules.
On Thu, Oct 21, 2010 at 12:27 PM, Otto <otto at ottodestruct.com> wrote:
> Looking at the code, I see that I have been mistaken on this point for
> some time now. Static strings at the front of the permalink string do
> not disable verbose page rules. Although I don't know why it's doing
> that, since static strings should be fine to avoid the problem.
> I'll have to investigate the rewrite system some more.
> On Thu, Oct 21, 2010 at 2:16 PM, Ryan Bilesky <rbilesky at gmail.com> wrote:
> > I made an interesting discovery today, I use a permalink of
> > Now while having another rewrite rules issue I install this plugin (
> > http://wordpress.org/extend/plugins/askapaches-rewriterules-viewer/)
> > according to it, my blog is using verbose page rewrite rules.
> > Now performance wise this isn;t much of an issue as I won;t have
> > more than 50 pages or so, but this is causing another issue when I modify
> > the sql queries of one blog to pull posts, pages, and comments from
> > blog on my multisite install. see my other recent email about my
> > probllems with multisite. I am using the query filter to change
> > to wp_table and everything works find, except pages, unless I copy the
> > to that sites table to create the rewrite rules.
> > Anyway just though I'd update this with my findings about using a static
> > string to start post permalinks.
> > On Thu, Sep 2, 2010 at 10:45 AM, Ryan Bilesky <rbilesky at gmail.com>
> >> According to http://codex.wordpress.org/Using_Permalinks
> >> Permalinks for posts should start with some sort of number.
> >> "For performance reasons, it is *not* a good idea to start your
> >> structure with the category, tag, author, or postname fields. The reason
> >> that these are text fields, and using them at the beginning of your
> >> permalink structure it takes more time for WordPress to distinguish your
> >> Post URLs from Page URLs (which always use the text "page slug" as the
> >> and to compensate, WordPress stores a lot of extra information in its
> >> database (so much that sites with lots of Pages have experienced
> >> difficulties). So, it is best to start your permalink structure with a
> >> numeric field, such as the year or post ID."
> >> Now my question is this, I would like to have my permalinks for posts
> >> like this: mysite.tld/blog/%postname%
> >> Does anyone know if this will cause any performance issues since they
> >> with a static string?
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers