Does this have time-based cache invalidation? The problem I've run into with checking the cache first is you don't know if there's a new version of a replaceable event
Got completely distracted the past two days but I think it will be worth it. I'm about half way through designing a modular event loading system for applesauce.
This would allow and app to pull in parts and customize how their app loads profiles. for example you could load from 2 event caches, a local relay, and then finally make connections out to public relays to look for the profiles
Still very much a WIP though, so not sure how will it will actually work
https://cdn.hzrd149.com/eef7990cf0a2dc0b1d9146b7850c1cdbf9182aa54ad173dab5ae6fd5cee74979.webp
Discussion
no not yet, but this is why I'm trying to make things modular. it shouldn't be hard to modify the "load from cache" function to only look for events that had some "checked" flag newer than a week 🤔