forked from mirrors/thatmattlove-hyperglass
removed old flask-caching reference from clear-cache function
This commit is contained in:
parent
9d5608d72e
commit
48c970db76
1 changed files with 5 additions and 6 deletions
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue