flask caching

cache in flask
before/after requests