adjacent_image_link() needs optimization
|Reported by:||markjaquith||Owned by:|
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 (22)
comment:13 wonderboymusic — 7 months ago
- Keywords has-patch added
- Milestone changed from Future Release to 3.7
comment:18 wonderboymusic — 7 weeks ago
- Keywords needs-unit-tests added
- Milestone changed from Future Release to 3.9