Simply set your app.config's CACHE_TYPE
key to "null"
before you initialize Flask-Cache:
app.config["CACHE_TYPE"] = "null"
# change to "redis" and restart to cache again
# some time later
cache.init_app(app)
# All caching functions will simply call through
# to the wrapped function, with no caching
# (since NullCache does not cache).