1
0
Fork 0

Added requests caching on backend to hit the meals db less

This commit is contained in:
Ava Gaiety Wroten 2019-12-24 17:36:00 -06:00
parent 4206cb4809
commit bb989c5422
5 changed files with 4 additions and 1 deletions

View file

@ -3,7 +3,7 @@
## Getting Started
```bash
pip3 install requests gunicorn pycnic
pip3 install requests requests-cache gunicorn pycnic
gunicorn api:app
```

View file

@ -1,8 +1,11 @@
from pycnic.core import WSGI, Handler
from key_replacer import KeyReplacer
import requests
import requests_cache
import json
requests_cache.install_cache()
class Base(Handler):
hostname = "https://www.themealdb.com/api/json/v1/1/"

BIN
python-api/cache.sqlite Normal file

Binary file not shown.

Binary file not shown.