mirror of https://github.com/apache/superset.git
This reverts commit c6867d22b9
.
This commit is contained in:
parent
783667168b
commit
edec8745b8
|
@ -103,10 +103,6 @@ def get_manifest():
|
|||
|
||||
#################################################################
|
||||
|
||||
# Setup the cache prior to registering the blueprints.
|
||||
cache = setup_cache(app, conf.get("CACHE_CONFIG"))
|
||||
tables_cache = setup_cache(app, conf.get("TABLE_NAMES_CACHE_CONFIG"))
|
||||
|
||||
for bp in conf.get("BLUEPRINTS"):
|
||||
try:
|
||||
print("Registering blueprint: '{}'".format(bp.name))
|
||||
|
@ -128,6 +124,9 @@ if conf.get("WTF_CSRF_ENABLED"):
|
|||
|
||||
pessimistic_connection_handling(db.engine)
|
||||
|
||||
cache = setup_cache(app, conf.get("CACHE_CONFIG"))
|
||||
tables_cache = setup_cache(app, conf.get("TABLE_NAMES_CACHE_CONFIG"))
|
||||
|
||||
migrate = Migrate(app, db, directory=APP_DIR + "/migrations")
|
||||
|
||||
app.config.get("LOGGING_CONFIGURATOR").configure_logging(app.config, app.debug)
|
||||
|
|
Loading…
Reference in New Issue