mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
don't cache errors
This commit is contained in:
parent
0fd5bc7997
commit
3b0abd5ba8
1 changed files with 2 additions and 0 deletions
|
|
@ -138,6 +138,8 @@ async def query(_state: HyperglassState, request: Request, data: Query) -> Query
|
||||||
response_format = "text/plain"
|
response_format = "text/plain"
|
||||||
|
|
||||||
if json_output:
|
if json_output:
|
||||||
|
if cache_response.get("level") != "success":
|
||||||
|
cache.delete(cache_key)
|
||||||
response_format = "application/json"
|
response_format = "application/json"
|
||||||
_log.info("Execution completed")
|
_log.info("Execution completed")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue