Patreon / patreon-php

Interact with the Patreon API via OAuth
Apache License 2.0
145 stars 41 forks source link

Add access token to cache hash logic. Make cache var and function non static. #77

Closed codebard closed 4 years ago

codebard commented 4 years ago

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.