I’m trying to query posts once a user has followed/unfollowed someone to get their latest feed. It looks like amity is caching the response and returning an old one, as the response doesn’t update until I refresh after a while. In the docs, I notied a modelDataLifespan variable, but I am unsure as to how to set the config in my project.
Also, is there any way to directly invalidate the cache on a request? Thanks in advance for your help
Hello @evanABC Sorry for late response. After checking with the team, unfortunately, this is by design for JS SDK. Would you consider switching to TS SDK instead? You will be able to disable or reduce caching time on TS SDK.