feat: Implement dashboard caching and refresh functionality#11100
feat: Implement dashboard caching and refresh functionality#11100wanghe-fit2cloud merged 3 commits into1Panel-dev:dev-v2from
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
… and improve caching strategy
What this PR does / why we need it?
dashboard 首屏并发请求很多重复信息,这些信息阻塞了很多模块的渲染,导致用户感受卡顿。
Summary of your change
通过缓存策略和分析用户心理,加快组件渲染速度。再根据需求异步刷新这些数据,用户用不到、看不见的数据直接读加载好缓存而不是再请求后端。用户重复访问 dashboard 时,所有信息不再阻塞渲染。
Please indicate you've done the following: