fix(thumbnails): ensure consistent cache_key (#33109)

(cherry picked from commit 347c174099)
This commit is contained in:
Daniel Höxtermann
2025-04-12 21:15:08 +02:00
committed by Michael S. Molina
parent 65c9375624
commit bf2e014cde
2 changed files with 3 additions and 0 deletions

View File

@@ -1303,6 +1303,7 @@ class DashboardRestApi(BaseSupersetModelRestApi):
current_user=current_user,
dashboard_id=dashboard.id,
force=False,
cache_key=cache_key,
)
return self.response(
202,

View File

@@ -78,6 +78,7 @@ def cache_dashboard_thumbnail(
force: bool,
thumb_size: Optional[WindowSize] = None,
window_size: Optional[WindowSize] = None,
cache_key: str | None = None,
) -> None:
# pylint: disable=import-outside-toplevel
from superset.models.dashboard import Dashboard
@@ -103,6 +104,7 @@ def cache_dashboard_thumbnail(
window_size=window_size,
thumb_size=thumb_size,
force=force,
cache_key=cache_key,
)