Skip to content

Commit

Permalink
Remove cache warming documentation (#20269)
Browse files Browse the repository at this point in the history
The cache warming strategies perform unauthorized `GET` requests that are redirected to the login page #9597
  • Loading branch information
atticoos authored Jun 15, 2022
1 parent d6f9fb5 commit 1882c6d
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions docs/docs/installation/cache.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1882c6d

Please sign in to comment.