mirror of
https://github.com/apache/superset.git
synced 2026-08-12 11:11:01 +00:00
Add cache_key_wrapper to Jinja template processor (#7816)
This commit is contained in:
committed by
Maxime Beauchemin
parent
f570b459f2
commit
4568b2a532
@@ -152,8 +152,13 @@ class QueryContext:
|
||||
|
||||
def get_df_payload(self, query_obj, **kwargs):
|
||||
"""Handles caching around the df paylod retrieval"""
|
||||
extra_cache_keys = self.datasource.get_extra_cache_keys(query_obj)
|
||||
cache_key = (
|
||||
query_obj.cache_key(datasource=self.datasource.uid, **kwargs)
|
||||
query_obj.cache_key(
|
||||
datasource=self.datasource.uid,
|
||||
extra_cache_keys=extra_cache_keys,
|
||||
**kwargs
|
||||
)
|
||||
if query_obj
|
||||
else None
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user