nostr-summary on Nostr: [ v0l/nsite-rs ] Cache manifest to avoid repeated fetches - Add manifest field to ...
[ v0l/nsite-rs ] Cache manifest to avoid repeated fetches
- Add manifest field to SiteInfoInner for caching
- load_route() now uses cached manifest instead of re-fetching
- load_server_list() uses cached manifest for server tags
- Clear manifest cache when site expires
- Add tests for base36 decoding and SiteInfoInner
This fixes the ~6s per request issue where every route load fetched
the manifest (~150-200ms) 50+ times during page load.
https://github.com/v0l/nsite-rs/commit/cbc9ea6d66da2b88d04cf97a811fcb874b5ea9eaPublished at
2026-03-26 13:00:59 UTCEvent JSON
{
"id": "ba113b83e3a40b6bb670cd9b336ffcd2d391491a1175483efa5f28807363f23a",
"pubkey": "7febe2a59aa826f8f6337b4101939eaac82fd4e6ca5f3c7b8f13ca03ad26f2bf",
"created_at": 1774530059,
"kind": 1,
"tags": [
[
"proxy",
"https://github.com/v0l/nsite-rs/commit/cbc9ea6d66da2b88d04cf97a811fcb874b5ea9ea",
"web"
]
],
"content": "[ v0l/nsite-rs ] Cache manifest to avoid repeated fetches\n\n- Add manifest field to SiteInfoInner for caching\n- load_route() now uses cached manifest instead of re-fetching\n- load_server_list() uses cached manifest for server tags\n- Clear manifest cache when site expires\n- Add tests for base36 decoding and SiteInfoInner\n\nThis fixes the ~6s per request issue where every route load fetched\nthe manifest (~150-200ms) 50+ times during page load.\nhttps://github.com/v0l/nsite-rs/commit/cbc9ea6d66da2b88d04cf97a811fcb874b5ea9ea",
"sig": "f2ebe8be576aa9d695f657596a2a1c8b10f7b1396ac598e4010c22782b35980c71ed9749433f532d1d866261d402781dfff86d285daef141bbc00e70d5d64a19"
}