API request cache needed to be accommodating to use in backend in cases in which more than one access token pertaining to users was used to process users en masse. Existing request cache was suitable for dealing with one Patreon user's info in one page load.
Solution
Added access token to the hash logic for creating hashes for request cache entries. This will allow differentiation of calls for different tokens.
Additionally cache var and function were made non static.
Verification
Tested. Can be verified by testing in a test installation.
Problem
API request cache needed to be accommodating to use in backend in cases in which more than one access token pertaining to users was used to process users en masse. Existing request cache was suitable for dealing with one Patreon user's info in one page load.
Solution
Added access token to the hash logic for creating hashes for request cache entries. This will allow differentiation of calls for different tokens.
Additionally cache var and function were made non static.
Verification
Tested. Can be verified by testing in a test installation.
Does this need tests
No.