[IMP] add Flask-Cache and configure it
[FIX] add the config for flask-cache
[FIX] use the flask-cache and remove unused code