Magazi is a content distribution platform that gates access to files using ATProtocol (Bluesky) identity and cryptographic proofs. download.ngerakines.me/
atprotocol appview atprotocol-attestations
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: tuning entitlement and context caching

+2 -2
+2 -2
src/state.rs
··· 66 66 // Cache entitlement contexts by DID - 30 min TTL 67 67 let context_cache = Cache::builder() 68 68 .max_capacity(10_000) 69 - .time_to_live(Duration::from_secs(1800)) // 30 minutes 69 + .time_to_live(Duration::from_secs(60)) // 1 minute 70 70 .build(); 71 71 72 72 // Cache entitlement results by (DID, catalog_id) - 5 min TTL 73 73 let entitlement_cache = Cache::builder() 74 74 .max_capacity(50_000) 75 - .time_to_live(Duration::from_secs(300)) // 5 minutes 75 + .time_to_live(Duration::from_secs(1800)) // 30 minutes 76 76 .build(); 77 77 78 78 let cookie_key = cookie_key_from_bytes(&config.cookie_key);