Skip to content

Commit 347c174

Browse files
authored
fix(thumbnails): ensure consistent cache_key (#33109)
1 parent 5656d69 commit 347c174

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

superset/dashboards/api.py

+1
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,7 @@ def thumbnail(self, pk: int, digest: str, **kwargs: Any) -> WerkzeugResponse:
13071307
current_user=current_user,
13081308
dashboard_id=dashboard.id,
13091309
force=False,
1310+
cache_key=cache_key,
13101311
)
13111312
return self.response(
13121313
202,

superset/tasks/thumbnails.py

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def cache_dashboard_thumbnail(
7878
force: bool,
7979
thumb_size: Optional[WindowSize] = None,
8080
window_size: Optional[WindowSize] = None,
81+
cache_key: str | None = None,
8182
) -> None:
8283
# pylint: disable=import-outside-toplevel
8384
from superset.models.dashboard import Dashboard
@@ -103,6 +104,7 @@ def cache_dashboard_thumbnail(
103104
window_size=window_size,
104105
thumb_size=thumb_size,
105106
force=force,
107+
cache_key=cache_key,
106108
)
107109

108110

0 commit comments

Comments
 (0)