-
Notifications
You must be signed in to change notification settings - Fork 121
Description
As of writing, the revenue stats data from v4 API are cached for an uncertain amount of time if all the parameters are the same. To get around this issue on the client side, we can set a random value to the per_page param that is originally used for the maximum number of intervals (but not needed if after and before params are set correctly).
There is a chance, that the random number stays the same, but the probability should be low when the random param is the same for multiple times. If this proves to be an issue, we could update to a more robust approach like remembering the last random param value and incrementing each time. For now, let's use a simple approach and hopefully this issue will be fixed soon.
Thanks to Android for this workaround!