Caching
Last updated
Was this helpful?
Last updated
Was this helpful?
Spotrix uses for caching purposes. Flask-Caching supports various caching backends, including Redis (recommended), Memcached, SimpleCache (in-memory), or the local filesystem. are also supported.
Caching can be configured by providing a dictionaries in spotrix_config.py
that comply with .
The following cache configurations can be customized in this way:
Dashboard filter state: FILTER_STATE_CAHCE_CONFIG required
Explore chart from data: EXPLORE_FROM_DATA_CACHE_CONFIG required
Metadata cache: CACHE_CONFIG optional
Charting data required from datasets: DATA_CACHE_CONFIG optional
For example, to configure the filter state cache using redis: