You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by er...@apache.org on 2020/01/25 01:47:03 UTC

[incubator-superset] branch erik-ritter--always-create-cache created (now 718e298)

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

erikrit pushed a change to branch erik-ritter--always-create-cache
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


      at 718e298  [Caching] Ensure cache is always created

This branch includes the following new commits:

     new 718e298  [Caching] Ensure cache is always created

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: [Caching] Ensure cache is always created

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erikrit pushed a commit to branch erik-ritter--always-create-cache
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 718e29878595c9a92e5ad55b341058accd55be9a
Author: Erik Ritter <er...@airbnb.com>
AuthorDate: Fri Jan 24 17:46:49 2020 -0800

    [Caching] Ensure cache is always created
---
 superset/utils/cache_manager.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/superset/utils/cache_manager.py b/superset/utils/cache_manager.py
index cfbeb34..75df8fd 100644
--- a/superset/utils/cache_manager.py
+++ b/superset/utils/cache_manager.py
@@ -38,8 +38,7 @@ class CacheManager:
         """Setup the flask-cache on a flask app"""
         if cache_config:
             if isinstance(cache_config, dict):
-                if cache_config.get("CACHE_TYPE") != "null":
-                    return Cache(app, config=cache_config)
+                return Cache(app, config=cache_config)
             else:
                 # Accepts a custom cache initialization function,
                 # returning an object compatible with Flask-Caching API