mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
removed old flask-caching reference from clear-cache function
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user