[wp-hackers] Unique permalinks vs. unique post slugs

scribu scribu at gmail.com
Tue Dec 16 22:45:33 GMT 2008

> That check would be quite expensive, actually, as it would require
> that you verify every "part" of the permalink in a page request. As it
> stands now, it merely figures out the most specific part (easy to do)
> and looks for a matching result. One database hit instead of several.
> No result = 404. No verification of anything needed.

What about nested pages? You can have pages with different parents and the
same slug. Why isn't that expensive?


More information about the wp-hackers mailing list