mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Don't cache if there's no cache key (#4229)
This commit is contained in:
parent
a942f81dfd
commit
85d137b20a
@ -282,7 +282,11 @@ class BaseViz(object):
|
||||
data = None
|
||||
stacktrace = traceback.format_exc()
|
||||
|
||||
if data and cache and self.status != utils.QueryStatus.FAILED:
|
||||
if (
|
||||
data and
|
||||
cache_key and
|
||||
cache and
|
||||
self.status != utils.QueryStatus.FAILED):
|
||||
cached_dttm = datetime.utcnow().isoformat().split('.')[0]
|
||||
try:
|
||||
cache_value = json.dumps({
|
||||
|
Loading…
Reference in New Issue
Block a user