This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch 
revert-7992-john-bodley--setting-cache-prior-to-blueprints
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 7bdc8d2e1b52c1e9a0cfa1de4d0fb21b05dccf70
Author: John Bodley <[email protected]>
AuthorDate: Wed Aug 7 12:58:20 2019 -0700

    Revert "[init] Setting up cache before registering blueprints (#7992)"
    
    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 12d8cf6..d1981c0 100644
--- a/superset/__init__.py
+++ b/superset/__init__.py
@@ -105,10 +105,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))
@@ -138,6 +134,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")
 
 # Logging configuration

Reply via email to