adjacent_image_link() needs optimization
|Reported by:||markjaquith||Owned by:|
|Cc:||xoodrew@…, ADAMSILVERSTEIN@…, dromsey@…, hardyy|
adjacent_image_link() is really slow and stupid. It queries for all of the images attached to that post. And then it picks the previous or next one in PHP. And there's no caching, so you'll typically get this happening three times on an attachment page, (image [linked to next], prev link, next link).
We should actually just make the query grab the ONE image we want.
Change History (20)
comment:13 wonderboymusic — 4 months ago
- Keywords has-patch added
- Milestone changed from Future Release to 3.7