diff --git a/app/routes/app.py b/app/routes/app.py index 9802d86..0992cf7 100644 --- a/app/routes/app.py +++ b/app/routes/app.py @@ -1,5 +1,4 @@ from flask import Blueprint, redirect, url_for, render_template -from app import cache from datetime import datetime bp = Blueprint("app", __name__, url_prefix = "/") @@ -7,12 +6,3 @@ bp = Blueprint("app", __name__, url_prefix = "/") @bp.route("/") def index(): return redirect(url_for("topics.all_topics")) - -@bp.route("/cache-test") -def cache_test(): - test_value = cache.get('test') - if test_value is None: - test_value = 'cached_value_' + str(datetime.now()) - cache.set('test', test_value, timeout=10) - return f"set cache: {test_value}" - return f"cached: {test_value}"