From 99033b3ea49fce417eef94579013d5cbe424ca27 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Wed, 8 Sep 2021 22:14:11 -0700 Subject: [PATCH] logs: use @flask_util.cached ...to include query string in cache key --- logs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logs.py b/logs.py index 9af2576..c722f10 100644 --- a/logs.py +++ b/logs.py @@ -3,7 +3,7 @@ import calendar import urllib.parse from flask import render_template -from oauth_dropins.webutil import logs, util +from oauth_dropins.webutil import flask_util, logs, util from app import app, cache from models import Response @@ -26,6 +26,6 @@ def responses(): @app.get('/log') -@cache.cached(logs.CACHE_TIME.total_seconds()) +@flask_util.cached(cache, logs.CACHE_TIME) def log(): return logs.log()