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

This commit is contained in:
Daniel Höxtermann
2025-04-12 21:15:08 +02:00
committed by GitHub
parent 5656d69c04
commit 347c174099
2 changed files with 3 additions and 0 deletions

View File

@@ -1307,6 +1307,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,
)