1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +00:00

removed old flask-caching reference from clear-cache function

This commit is contained in:
checktheroads 2019-06-15 12:52:13 -07:00
parent 9d5608d72e
commit 48c970db76

View file

@ -128,12 +128,11 @@ def handle_500(e):
def clear_cache():
"""Function to clear the Redis cache"""
with app.app_context():
try:
r_cache.flushdb()
except Exception as error_exception:
logger.error(f"Error clearing cache: {error_exception}")
raise
try:
r_cache.flushdb()
except Exception as error_exception:
logger.error(f"Error clearing cache: {error_exception}")
raise
@app.route("/", methods=["GET"])