jmx2inc / picpuller-for-craft3

Pic Puller for Craft 3 lets authorized users pull in their Instagram media into Craft.
https://picpuller.com/
Other
12 stars 4 forks source link

Not using cached data after api limit is reached #8

Closed lukermiller closed 5 years ago

lukermiller commented 6 years ago

Once the API limit of 200 per hour is reached. I receive the error message Error Type: OAuthRateLimitException Error Message: You have exceeded the maximum number of requests per hour

I have use_stale_cache set to true. I was under the assumption that once this limit is reached it would be using cached data if this was set to true.

johnfmorton commented 6 years ago

Pic Puller attempts to do that, but if the request doesn't match the URL of the request exactly, it won't return a result. I suggest using the built-in Craft {cache} tags plus have an "error" block that displays backup content as well.

lukermiller commented 5 years ago

Thanks. Using the built in Craft Cache will work perfectly.

johnfmorton commented 5 years ago

Thanks. Good luck!