mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
add logging for cache hit
This commit is contained in:
parent
7e87cff7fc
commit
91a89865b9
1 changed files with 2 additions and 0 deletions
|
|
@ -61,6 +61,8 @@ async def query(query_data: Query, request: Request):
|
|||
|
||||
cached = False
|
||||
if cache_response:
|
||||
log.debug("Query {q} exists in cache", q=cache_key)
|
||||
|
||||
# If a cached response exists, reset the expiration time.
|
||||
await cache.expire(cache_key, seconds=cache_timeout)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue