opensatx / sawaterlevel-api

Simple web scraper that grabs water data for sawaterlevel app, serves json
sawaterlevels-api.herokuapp.com
3 stars 2 forks source link

Introduce caching #4

Open davidrleonard opened 10 years ago

davidrleonard commented 10 years ago

Right now, the app submits an HTTP request to the Edwards Aquifer Authority website every time someone hits the level/ endpoint.

Once we introduce a databaase (#3) we should do some caching. The data is only updated every 15 minutes, so we should only go grab it every 15 minutes.

Allenrocks commented 10 years ago

Awesome! On Jul 11, 2014, at 5:46 PM, David Leonard notifications@github.com wrote:

Right now, the app submits an HTTP request to the Edwards Aquifer Authority website every time someone hits the level/ endpoint.

Once we introduce a databaase (#3) we should do some caching. The data is only updated every 15 minutes, so we should only go grab it every 15 minutes.

— Reply to this email directly or view it on GitHub.