mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix(cache): respect default cache timeout on v1 chart data requests (#21441)
This commit is contained in:
@@ -434,6 +434,12 @@ class QueryContextProcessor:
|
||||
cache_timeout_rv = self._query_context.get_cache_timeout()
|
||||
if cache_timeout_rv:
|
||||
return cache_timeout_rv
|
||||
if (
|
||||
data_cache_timeout := config["DATA_CACHE_CONFIG"].get(
|
||||
"CACHE_DEFAULT_TIMEOUT"
|
||||
)
|
||||
) is not None:
|
||||
return data_cache_timeout
|
||||
return config["CACHE_DEFAULT_TIMEOUT"]
|
||||
|
||||
def cache_key(self, **extra: Any) -> str:
|
||||
|
||||
Reference in New Issue
Block a user