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

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

commit b39512758ec09bbb6df97375f2973b3de0b4e340
Author: John Bodley <[email protected]>
AuthorDate: Tue Aug 6 10:17:09 2019 -0700

    [init] Setting up cache before registering blueprints
---
 superset/__init__.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/superset/__init__.py b/superset/__init__.py
index d1981c0..7d14f31 100644
--- a/superset/__init__.py
+++ b/superset/__init__.py
@@ -105,6 +105,9 @@ def get_manifest():
 
 #################################################################
 
+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))
@@ -134,9 +137,6 @@ 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