mirror of https://github.com/apache/superset.git
Remove cache warming documentation (#20269)
The cache warming strategies perform unauthorized `GET` requests that are redirected to the login page #9597
This commit is contained in:
parent
d6f9fb5af1
commit
1882c6d5cc
|
@ -42,26 +42,6 @@ defined in `DATA_CACHE_CONFIG`.
|
|||
|
||||
## Celery beat
|
||||
|
||||
Superset has a Celery task that will periodically warm up the cache based on different strategies.
|
||||
To use it, add the following to the `CELERYBEAT_SCHEDULE` section in `config.py`:
|
||||
|
||||
```python
|
||||
CELERYBEAT_SCHEDULE = {
|
||||
'cache-warmup-hourly': {
|
||||
'task': 'cache-warmup',
|
||||
'schedule': crontab(minute=0, hour='*'), # hourly
|
||||
'kwargs': {
|
||||
'strategy_name': 'top_n_dashboards',
|
||||
'top_n': 5,
|
||||
'since': '7 days ago',
|
||||
},
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
This will cache all the charts in the top 5 most popular dashboards every hour. For other
|
||||
strategies, check the `superset/tasks/cache.py` file.
|
||||
|
||||
### Caching Thumbnails
|
||||
|
||||
This is an optional feature that can be turned on by activating it’s feature flag on config:
|
||||
|
|
Loading…
Reference in New Issue