Add cache_key_wrapper to Jinja template processor (#7816)

This commit is contained in:
Ville Brofeldt
2019-07-20 09:12:35 -07:00
committed by Maxime Beauchemin
parent f570b459f2
commit 4568b2a532
8 changed files with 102 additions and 12 deletions
+6 -1
View File
@@ -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
)