[wp-hackers] max performance tuning in wp

Andras Stracz shikakaa at gmail.com
Wed Aug 4 14:26:41 UTC 2010

Indeed, that was the cause for some of them. The permalink structure is
/%category%/%postname%/ but that is not something we want to change. Now the
array is 600 long, so it's not a performance issue anymore. I just used
add_filter('post_rewrite_rules', 'filter_rewrite_crap'); where unneeded
array items are unset. parse_request's total cost went from 100ms to 2ms.

Andras Stracz

On Wed, Aug 4, 2010 at 16:20, Otto <otto at ottodestruct.com> wrote:

> On Wed, Aug 4, 2010 at 8:44 AM, Andras Stracz <shikakaa at gmail.com> wrote:
> > parse_request for instance runs a 10000+ foreach loop based on the
> > get_option('rewrite_rules') field, which was 1.5MB.
> You're probably using a bad permalink string.
> See this:
> http://ottopress.com/2010/category-in-permalinks-considered-harmful/
> -Otto
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list