[wp-forums] Codex: Using Permalinks

Otto otto at ottodestruct.com
Mon Feb 8 14:43:09 UTC 2010


Apache doesn't do the matching, WordPress does.

And no, it is not a good idea to start the permalink string with
postname, category, tag, or author. Doing so will turn on the
"use_verbose_page_rules" flag, which will create extra matching rules
for the Pages in the system.

Basically, when you have something at the top level like this, it
needs to create one-rule-per-page in order to detect the Pages
properly. Without these at the top level, it can use
one-rule-for-all-pages to match against.

It's generally not a big deal unless you have lots of Pages. But if
you do, and you start the permalink string with one of those, you can
create a big slowdown due to the excessive need to search the Pages
for every URL.

-Otto
Sent from Memphis, TN, United States


On Mon, Feb 8, 2010 at 8:36 AM, t31os <wp_t31os at t31os.co.cc> wrote:
> Hi to all,
>
> Perhaps this may help shed a little more light on the subject although not
> entirely relevant, their are some pieces of discussion in that topic that
> may be of interest.
>
> http://comox.textdrive.com/pipermail/wp-testers/2009-January/011099.html
>
> I think part of the issue arises in using permalinks that don't have a
> numeric value in them, the performance hit comes from the intensive pattern
> matching apache then has to perform to determine what content it should be
> displaying.
>
> When you use numeric values, like months and years you actually make it
> easier for apache to find the content (the pattern matching need not be
> quite as complex to find what it needs), in turn performance is better.
>
> I could of sworn a read a topic on the hackers list on performance
> specifically with permalink structures, but in all my searching i cannot for
> the life of me find the thread now, so perhaps i imagined it.
>
> Regards,
> Mark D
>
> aka t31os
>
> esmi at quirm dot net wrote:
>>
>> on 08/02/2010 10:43 mrmist said the following:
>>
>>>> <http://codex.wordpress.org/Using_Permalinks#Structure_Tags>
>>
>>> I wonder if Scribu doesn't mean 3.0 rather than 2.0.  Probably one for
>>> the Codex list or the talk page...
>>
>> Just signed up to to wp-docs and added a comment to the Talk page.
>>
>> esmi
>>
>>
>> _______________________________________________
>> wp-forums mailing list
>> wp-forums at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-forums
>>
> _______________________________________________
> wp-forums mailing list
> wp-forums at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-forums
>


More information about the wp-forums mailing list