mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
Update cache for the command line command. (#2213)
This commit is contained in:
@@ -61,7 +61,7 @@ class BaseEngineSpec(object):
|
||||
@cache_util.memoized_func(
|
||||
timeout=600,
|
||||
key=lambda *args, **kwargs: 'db:{}:{}'.format(args[0].id, args[1]))
|
||||
def fetch_result_sets(cls, db, datasource_type):
|
||||
def fetch_result_sets(cls, db, datasource_type, force=False):
|
||||
"""Returns the dictionary {schema : [result_set_name]}.
|
||||
|
||||
Datasource_type can be 'table' or 'view'.
|
||||
@@ -260,7 +260,7 @@ class PrestoEngineSpec(BaseEngineSpec):
|
||||
@cache_util.memoized_func(
|
||||
timeout=600,
|
||||
key=lambda *args, **kwargs: 'db:{}:{}'.format(args[0].id, args[1]))
|
||||
def fetch_result_sets(cls, db, datasource_type):
|
||||
def fetch_result_sets(cls, db, datasource_type, force=False):
|
||||
"""Returns the dictionary {schema : [result_set_name]}.
|
||||
|
||||
Datasource_type can be 'table' or 'view'.
|
||||
|
||||
Reference in New Issue
Block a user