GitHub user dosubot[bot] added a comment to the discussion: Automatic refresh 
of Dashboards

<!-- Answer -->
You can refresh Superset dashboard/chart caches globally—without user/browser 
sessions—using Superset’s backend-driven cache warming features. Superset 
provides a REST API endpoint (/api/v1/chart/warm_up_cache) and built-in Celery 
tasks for this purpose. You can schedule cache warming at any interval (like 
every 3 hours) using Celery’s beat_schedule and one of the built-in strategies 
(all charts, top-N dashboards, or dashboards with specific tags). The cache 
warm-up task will proactively refresh chart data in the cache, so users see 
fresh data even if no one has visited the dashboard recently. See the 
implementation and example strategies in 
[superset/tasks/cache.py](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/tasks/cache.py)
 and the API endpoint in 
[superset/charts/api.py](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/charts/api.py).

You’ll need to configure Celery and authentication for the warm-up tasks. Be 
mindful of resource usage and authentication requirements—each cache warm-up 
triggers real queries against your database, so schedule accordingly to avoid 
overloading your backend. This approach is fully backend and does not require 
browser automation or user interaction.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/408d2ba2-4669-4164-9235-2b1bdc38117c?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/408d2ba2-4669-4164-9235-2b1bdc38117c?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/408d2ba2-4669-4164-9235-2b1bdc38117c?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/408d2ba2-4669-4164-9235-2b1bdc38117c?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/408d2ba2-4669-4164-9235-2b1bdc38117c?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/408d2ba2-4669-4164-9235-2b1bdc38117c?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/408d2ba2-4669-4164-9235-2b1bdc38117c?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34340)

GitHub link: 
https://github.com/apache/superset/discussions/34340#discussioncomment-13905354

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to