GitHub user dosubot[bot] added a comment to the discussion: Cache warm_up logic?
<!-- Answer --> Superset's cache warmup works by pre-populating the cache for chart queries using the context of the user running the warmup task (often the 'superset' or system user). The cache key for each chart is built from parameters like chart config, datasource UID, time range, extra cache keys, and row-level security (RLS) context, but not directly from user ID or session info. If your setup uses RLS or user-specific filters, the cache key will differ for each user, so cache warmup only benefits the user context used during warmup. In typical setups without RLS, the warmed cache is shared and effective for all users. If you see repeated cold cache behavior for different users, it's likely due to RLS or user-specific parameters affecting the cache key, causing cache misses for those users. More details on cache key construction can be found [here](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/viz.py) and [here](https://github.com/apache/superset/blo b/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/charts/data/api.py). <!-- 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/610ca349-9d8c-4b92-8934-ddd10019384e?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/610ca349-9d8c-4b92-8934-ddd10019384e?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/610ca349-9d8c-4b92-8934-ddd10019384e?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/610ca349-9d8c-4b92-8934-ddd10019384e?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/610ca349-9d8c-4b92-8934-ddd10019384e?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/610ca349-9d8c-4b92-8934-ddd10019384e?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/610ca349-9d8c-4b92-8934-ddd10019384e?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34837) GitHub link: https://github.com/apache/superset/discussions/34837#discussioncomment-14207629 ---- This is an automatically sent email for notifications@superset.apache.org. To unsubscribe, please send an email to: notifications-unsubscr...@superset.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org