Patreon_Wordpress::getUserPatronage($user);
Is not actually giving me the right result after and user resubbed.
Its odd, cause getUserPatronageDuration does return the right value.
2022-10-08T12:35:21+00:00 DEBUG Status: active
2022-10-08T12:35:21+00:00 DEBUG User: patreon_46668768
2022-10-08T12:35:21+00:00 DEBUG User: 1623
2022-10-08T12:35:21+00:00 DEBUG Pledge Start: 1662397299
2022-10-08T12:35:21+00:00 DEBUG Patronage: 0
2022-10-08T12:35:21+00:00 DEBUG Lifetime: 2189
2022-10-08T12:35:21+00:00 DEBUG Patronage Duration: 32
What is the result it is giving versus the expected result? How long has it been after the user resubbed?
2022-10-10T12:24:09+00:00 DEBUG Status: active
2022-10-10T12:24:09+00:00 DEBUG User: patreon_74262442
2022-10-10T12:24:09+00:00 DEBUG User: 1690
2022-10-10T12:24:10+00:00 DEBUG Pledge Start: 1664712911
2022-10-10T12:24:10+00:00 DEBUG Patronage: 2500
2022-10-10T12:24:10+00:00 DEBUG Lifetime: 2500
2022-10-10T12:24:10+00:00 DEBUG Patronage Duration: 8
Patronage should show the current patronage.
Found a way to reproduce this:
When you disable Oauth only, created accounts with only Patreon will give me that behaviour.
Actually i dont know whats going on.
Can we get rate limited if i call $user_patronage too much?
Not really, but if your host or infra has anything that caches calls (incoming,outgoing etc) this could happen easily.
Also check whether the connection of your site to Patreon is still active.