You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2019/10/06 20:31:17 UTC
[incubator-superset] branch master updated: Revert "[init] Setting
up cache before registering blueprints (#7992)" (#8005)
This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new edec874 Revert "[init] Setting up cache before registering blueprints (#7992)" (#8005)
edec874 is described below
commit edec8745b866dd9f5929393b9746654a9ed255ae
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Sun Oct 6 13:31:00 2019 -0700
Revert "[init] Setting up cache before registering blueprints (#7992)" (#8005)
This reverts commit c6867d22b9a1174d635ddf746c2f8404c4648d95.
---
superset/__init__.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/superset/__init__.py b/superset/__init__.py
index 419a4ec..2d89234 100644
--- a/superset/__init__.py
+++ b/superset/__init__.py
@@ -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)