etr2460 commented on a change in pull request #11234:
URL: 
https://github.com/apache/incubator-superset/pull/11234#discussion_r503590295



##########
File path: superset/models/dashboard.py
##########
@@ -239,6 +248,41 @@ def data(self) -> Dict[str, Any]:
             "position_json": positions,
         }
 
+    @cache.memoize(
+        # manually maintain cache key version
+        make_name=lambda fname: f"{fname}-v1",
+        timeout=config["DASHBOARD_CACHE_TIMEOUT"],
+        unless=lambda: not is_feature_enabled("DASHBOARD_CACHE"),
+    )
+    def full_data(
+        self,
+        reduce_payload: bool = 
is_feature_enabled("REDUCE_DASHBOARD_BOOTSTRAP_PAYLOAD"),

Review comment:
       https://github.com/apache/incubator-superset/pull/11244




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to