![](https://uploads-us-west-2.insided.com/revenuecat-en/attachment/9548648c-f5f0-4bd1-b5a6-34c49137e7da.jpg)
![:100: 💯](https://cdn.jsdelivr.net/emojione/assets/png/1f4af.png?v=2.2.7)
![:100: 💯](https://cdn.jsdelivr.net/emojione/assets/png/1f4af.png?v=2.2.7)
Are all caches disabled for sandbox users?
Hi,
Can you explain a little more about your purchases flow? We don’t disable the cache in sandbox. Here’s a relatively new doc on caching if you want to learn more.
Sure, here’s the flow. The client shows the user the offering and once he decided to buy, he’s sent to the store. Then the client gets an event with a fresh subscription. The server webhook is also getting called and the server stores the temp id. If the client receives a temp ID, it sends the server a registration request with the temp id for authorization. The server replies with a QR code to be scanned by an authenticator app to generate a OTP. The OTP is sent back to the server and the server generates a new permanent user ID and add it to the reply, the client then uses it to login to RevenueCat.
As I’m developing this flow and I often need to reset and start fresh: cancel the subscription of the sandbox user, remove the user from RC and clear my server’s DB. When RC returns the user ID from its cache the client behaves differently as it’s not a temp ID. The server doesn’t recognize it as I flushed the db and I can’t test the scenario of a fresh user.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.