mirror of
https://github.com/apache/superset.git
synced 2026-04-10 03:45:22 +00:00
fix(thumbnails): ensure consistent cache_key (#33109)
This commit is contained in:
committed by
GitHub
parent
5656d69c04
commit
347c174099
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user