Closed paulvanharen closed 2 years ago
@nytai might be able to help 🙏
@paulvanharen, basically Superset requires 3 cache configs.
# Default cache for Superset objects
CACHE_CONFIG: CacheConfig = {"CACHE_TYPE": "null"}
# Cache for datasource metadata and query results
DATA_CACHE_CONFIG: CacheConfig = {"CACHE_TYPE": "null"}
THUMBNAIL_CACHE_CONFIG: CacheConfig = {
"CACHE_TYPE": "null",
"CACHE_NO_NULL_WARNING": True,
}
Your config does work for DATA_CACHE_CONFIG
. But you don't have CACHE_CONFIG
so that why you got that Warning.
You can either config CACHE_CONFIG or disable warning by adding "CACHE_NO_NULL_WARNING": True,
Hope this helps you.
I'm adding a Flask-Cache configuration to my superset_config.py file. No matter what I try, the result always remains the same:
superset/venv/lib/python3.8/site-packages/flask_caching/__init__.py:201: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
Please find my config file below. I've tried the three respective configurations independently. Redis is installed and passes the ping / PONG test.
Environment
pip list