diff --git a/superset/utils/cache_manager.py b/superset/utils/cache_manager.py index 062649a5f919f..c67644f308b1f 100644 --- a/superset/utils/cache_manager.py +++ b/superset/utils/cache_manager.py @@ -40,7 +40,7 @@ def _init_cache( ) -> None: cache_config = app.config[cache_config_key] cache_type = cache_config.get("CACHE_TYPE") - if required and cache_type is None or cache_type == "SupersetMetastoreCache": + if (required and cache_type is None) or cache_type == "SupersetMetastoreCache": if cache_type is None and not app.debug: logger.warning( "Falling back to the built-in cache, that stores data in the "