Fixed import issues on newer versions of Flask-Cache