[wp-hackers] Slow w/ Permalinks
alex at buayacorp.com
Wed Jul 23 18:02:06 GMT 2008
David J. Bisset escribió:
> I manually inserted 3000 pages into wp_posts (and associated data into
> wp_postmeta) via mysql (because this was much faster than entering the
> information via WP backend). The problem is that the website is taking a
> *LONG* time pulling up the pages and I have determined it's only slow
> when i activate my custom permalink:
> So this is very slow:
> When i revert to default permalinks, there's no problem:
> The big question is why. Did i miss something when i added the info (I
> correctly inputted gui info for each item added)? Can anyone venture a
> clue? It's been driving me out of my mind so much i'm willing to
> compensate someone for their time if they can look and give me a
> defining answer. Thanks.
If I'm not mistaken, WP generates 3000x4 rewrite rules for your pages,
that's why it's so slow.
To avoid this, you can set $wp_rewrite->use_verbose_page_rules in false
and then use a slight different permalink structure
"/posts/%category%/%postname%" -- I've used this hack to solve a similar
El camino del cielo es empinado, y el del infierno llano.
More information about the wp-hackers