Two requests for the same missing artwork fetch it twice #349

Closed
opened 2026-10-23 05:35:29 -07:00 by rays · 1 comment
Owner

/api/art on a cache miss fetches the image from its publisher, and a second request for the same URL meanwhile fetches it again. A page asks for ~50 at once, so a cold cache can fetch the same cover several times. Small: 61 misses in 7 days.

/api/art on a cache miss fetches the image from its publisher, and a second request for the same URL meanwhile fetches it again. A page asks for ~50 at once, so a cold cache can fetch the same cover several times. Small: 61 misses in 7 days.
rays added the enhancement label 2026-10-23 05:35:29 -07:00
Author
Owner

Fixed in cb4ee5a: a per-address lock makes a second request for an image being fetched wait, then read it from the cache. Deployed.

Fixed in cb4ee5a: a per-address lock makes a second request for an image being fetched wait, then read it from the cache. Deployed.
rays closed this issue 2026-10-23 08:35:35 -07:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#349