mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
[hotfix] delete cache key when set fails
This commit is contained in:
parent
267c0191a8
commit
bc58c5d031
@ -267,6 +267,7 @@ class BaseViz(object):
|
|||||||
# cache.set call can fail if the backend is down or if
|
# cache.set call can fail if the backend is down or if
|
||||||
# the key is too large or whatever other reasons
|
# the key is too large or whatever other reasons
|
||||||
logging.warning("Could not cache key {}".format(cache_key))
|
logging.warning("Could not cache key {}".format(cache_key))
|
||||||
|
cache.delete(cache_key)
|
||||||
payload['is_cached'] = is_cached
|
payload['is_cached'] = is_cached
|
||||||
return self.json_dumps(payload)
|
return self.json_dumps(payload)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user