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/08/07 19:58:34 UTC

[incubator-superset] branch revert-7992-john-bodley--setting-cache-prior-to-blueprints created (now 7bdc8d2)

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

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


      at 7bdc8d2  Revert "[init] Setting up cache before registering blueprints (#7992)"

This branch includes the following new commits:

     new 7bdc8d2  Revert "[init] Setting up cache before registering blueprints (#7992)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-superset] 01/01: Revert "[init] Setting up cache before registering blueprints (#7992)"

Posted by jo...@apache.org.
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 <45...@users.noreply.github.com>
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