From 1882c6d5cc397dfa2826266dfa100b7cfbe7bdd7 Mon Sep 17 00:00:00 2001 From: Atticus White Date: Wed, 15 Jun 2022 15:38:30 -0400 Subject: [PATCH] Remove cache warming documentation (#20269) The cache warming strategies perform unauthorized `GET` requests that are redirected to the login page #9597 --- docs/docs/installation/cache.mdx | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/docs/docs/installation/cache.mdx b/docs/docs/installation/cache.mdx index df2fc1471d29d..aaa8327451b8f 100644 --- a/docs/docs/installation/cache.mdx +++ b/docs/docs/installation/cache.mdx @@ -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: