PyColorado / boulderpython.org

Boulder Python Meetup Website
http://boulderpython.org
MIT License
5 stars 4 forks source link

Meetup API returns empty JSON #11

Closed frankV closed 6 years ago

frankV commented 6 years ago

The Meetup API will occasionally return an empty JSON, so we either need to cache it more aggressively, or store a successful response in database as a fallback.

svvitale commented 6 years ago

@frankV what do you think about using a simple module variable for fallback (i.e. store the last successful result as a module variable)? If the issue is truly intermittent and somewhat rare, it seems like doing the work to put it in the database is overkill.

frankV commented 6 years ago

Yea I agree. we can cache it longer too, I switched us to: http://pythonhosted.org/Flask-Caching/