mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -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
|
||||
# the key is too large or whatever other reasons
|
||||
logging.warning("Could not cache key {}".format(cache_key))
|
||||
cache.delete(cache_key)
|
||||
payload['is_cached'] = is_cached
|
||||
return self.json_dumps(payload)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user