youngyjd commented on a change in pull request #6078: allow cache and force 
refresh on table list
URL: 
https://github.com/apache/incubator-superset/pull/6078#discussion_r225348350
 
 

 ##########
 File path: superset/db_engine_specs.py
 ##########
 @@ -318,9 +318,25 @@ def get_schema_names(cls, inspector, db_id,
         return inspector.get_schema_names()
 
     @classmethod
-    def get_table_names(cls, schema, inspector):
+    @cache_util.memoized_func(
+        enable_cache=lambda *args, **kwargs: kwargs.get('enable_cache', False),
 
 Review comment:
   Refactored the decorator a little to avoid too many lambda functions passed 
to the decorator. Please let me know how I can improve it better.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to