logs: use @flask_util.cached

...to include query string in cache key
pull/79/head
Ryan Barrett 2021-09-08 22:14:11 -07:00
rodzic c6f0c417a0
commit 99033b3ea4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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()