Revert "[init] Setting up cache before registering blueprints (#7992)" (#8005)

This reverts commit c6867d22b9.
This commit is contained in:
John Bodley
2019-10-06 13:31:00 -07:00
committed by GitHub
parent 783667168b
commit edec8745b8

View File

@@ -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)