RSS Feeds
Follow me on Twitter!
- Home
- About
- Archives
- My WordPress Plugins
- Clean Archives Reloaded
- Disable Trackbacks
- jQuery Lightbox For Native Galleries
- Local Time
- Regenerate Thumbnails
- Registered Users Only
- SyntaxHighlighter Evolved
- Viper’s Video Quicktags
- WordPress Admin Bar
- WordPress Download Counter
- WordPress.org One-Click Install
- YOURLS: Short URL Widget
- [Other Plugins]
- [Discontinued Plugins]
- Donate
- Contact
July 29th, 20082008-07-30T04:56:04ZF jS, Y - 9:56 PM2008-07-30T04:56:04Zg:i A
Thanks Viper…this bug was annoying the heck out of me since 2.5. I organize my photo gallery by year and it kept screwing it up. Works like a charm now!
July 30th, 20082008-07-30T09:06:20ZF jS, Y - 2:06 AM2008-07-30T09:06:20Zg:i A
Good to hear!
Although one precaution: if you have a ton of Pages with the same stub, it’ll increase the number of queries on those Pages by a bit as I guess it’s trying to figure out which Page was requested. They’re easy queries though, so it shouldn’t have too much of an impact.
July 31st, 20082008-07-31T21:48:40ZF jS, Y - 2:48 PM2008-07-31T21:48:40Zg:i A
Got here via wp-hackers mailing list… I’m interested in this plugin. Just one question about the stub problem that causes multiple DB queries: When does that occur? Specifically, would that occur if I had subpages like this:
mysite.com/parent/001
mysite.com/parent/002
mysite.com/parent/003
etc
The reason I ask is because the child pages aren’t the same but they all have the same parent page in the URL. Is that what causes the problem? Thanks.
July 31st, 20082008-08-01T01:47:58ZF jS, Y - 6:47 PM2008-08-01T01:47:58Zg:i A
Glenn on July 31st, 2008 at 2:48 PM2008-07-31T21:48:40ZF jS, Y \a\t g:i A wrote:
It’s a separate issue entirely: http://trac.wordpress.org/ticket/7443
Here’s an example:
mysite.com/parent/alpha/mypage/
mysite.com/parent/beta/mypage/
mysite.com/parent/gamma/mypage/
When you visit any of those URLs, there is a good chance excess queries can occur. This is because WordPress is poorly tries to figure out which “mypage” you wanted (as there’s actually 3 Pages with the stub of “mypage”).
I have many, many Pages with the same single number stub but that have different parents. That was my issue.
This plugin alone should not cause any additional queries.
July 31st, 20082008-08-01T03:10:38ZF jS, Y - 8:10 PM2008-08-01T03:10:38Zg:i A
Thanks for the reply. Just curious, did you try Ryan’s diff that he added to that ticket?
July 31st, 20082008-08-01T03:27:23ZF jS, Y - 8:27 PM2008-08-01T03:27:23Zg:i A
Glenn on July 31st, 2008 at 8:10 PM2008-08-01T03:10:38ZF jS, Y \a\t g:i A wrote:
No, not yet although if I’m reading it correctly, all it does is allow the cache to help. If the Page hasn’t already been queried for and is known about, then I think it’ll still query.
I’ll test to see for sure later and if that’s the case, try and write my own patch as the code seems simple enough.
November 1st, 20092009-11-01T10:37:24ZF jS, Y - 2:37 AM2009-11-01T10:37:24Zg:i A
YOU ROCK!!!!