superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnbod...@apache.org
Subject [incubator-superset] 01/01: [init] Setting up cache before registering blueprints
Date Tue, 06 Aug 2019 17:17:26 GMT
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 <4567245+john-bodley@users.noreply.github.com>
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


Mime
View raw message