Fewer calls per page #11

closed cmc opened this on 2026-09-11 02:07 UTC

Discussion

cmc 2026-09-11 02:07 UTC

Post view is two API calls because comments are fetched inline. Move comments behind a link (/post/{author}/{name}/comments or ?comments=1) so the default post view is one call. Same for the user about page.

Rebuild /api/random to pick from cached DD or search results (1.1) instead of issuing up to three fresh searches per hit.

Depends on: 1.1.

Verify: post view makes exactly one upstream call in a test with a fake transport.

Roadmap item 1.4, size M. See ROADMAP.md.

closed by commit 778622bce5 by cmc: Fetch comments only when asked, and pick random art from the daily page

2026-09-11 15:13 UTC