mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +00:00
chore(cache): default to SimpleCache in debug mode (#18976)
* chore(cache): default to SimpleCache in debug mode * lint * clean up type * use util * fix integration test cache configs * remove util from cache manager * remove trailing comma * fix more tests * fix truthiness check * fix tests and improve deprecation notice * fix default cache threshold * move debug check to cache_manager * remove separate getter * update docs * remove default cache config
This commit is contained in:
@@ -53,7 +53,7 @@ PUBLIC_ROLE_LIKE = "Gamma"
|
||||
AUTH_ROLE_PUBLIC = "Public"
|
||||
EMAIL_NOTIFICATIONS = False
|
||||
|
||||
CACHE_CONFIG = {"CACHE_TYPE": "simple"}
|
||||
CACHE_CONFIG = {"CACHE_TYPE": "SimpleCache"}
|
||||
|
||||
REDIS_HOST = os.environ.get("REDIS_HOST", "localhost")
|
||||
REDIS_PORT = os.environ.get("REDIS_PORT", "6379")
|
||||
@@ -79,7 +79,7 @@ FEATURE_FLAGS = {
|
||||
}
|
||||
|
||||
THUMBNAIL_CACHE_CONFIG = {
|
||||
"CACHE_TYPE": "redis",
|
||||
"CACHE_TYPE": "RedisCache",
|
||||
"CACHE_DEFAULT_TIMEOUT": 10000,
|
||||
"CACHE_KEY_PREFIX": "superset_thumbnails_",
|
||||
"CACHE_REDIS_HOST": REDIS_HOST,
|
||||
|
||||
Reference in New Issue
Block a user