-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: enhance cache management in plugin setting config #6141
refactor: enhance cache management in plugin setting config #6141
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6141 +/- ##
============================================
- Coverage 56.91% 55.08% -1.83%
- Complexity 3319 3501 +182
============================================
Files 587 636 +49
Lines 18968 21456 +2488
Branches 1401 1501 +100
============================================
+ Hits 10795 11819 +1024
- Misses 7594 9029 +1435
- Partials 579 608 +29 ☔ View full report in Codecov by Sentry. |
application/src/main/java/run/halo/app/plugin/DefaultReactiveSettingFetcher.java
Outdated
Show resolved
Hide resolved
application/src/main/java/run/halo/app/plugin/DefaultPluginApplicationContextFactory.java
Show resolved
Hide resolved
application/src/main/java/run/halo/app/plugin/SharedApplicationContextFactory.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…plugin (#6156) #### What type of PR is this? /kind bug /area core /area plugin #### What this PR does / why we need it: The problem was introduced by PR <#6141>. That PR wrongly registered `settingFetcher` singleton bean. #### Which issue(s) this PR fixes: <img width="1920" alt="image" src="https://github.com/halo-dev/halo/assets/16865714/ecc67064-3506-49b8-8114-a145da549126"> #### Does this PR introduce a user-facing change? ```release-note None ```
### What this PR does? 新增关于如何使用插件配置的文档 see also halo-dev/halo#6141 ```release-note None ```
) #### What type of PR is this? /kind bug /area core /area plugin /milestone 2.17.x #### What this PR does / why we need it: This PR makes sure the method `cache#put` is called before the event is published to avoid the event listener to fetch the old value from the cache. The problem was introduced by <#6141>. #### Which issue(s) this PR fixes: Fixes #6213 #### Does this PR introduce a user-facing change? ```release-note 修复在插件配置变更监听器中始终获取到旧数据的问题 ```
What type of PR is this?
/kind feature
/area plugin
/area core
/milestone 2.17.x
What this PR does / why we need it:
增强插件配置的缓存管理
PluginConfigUpdatedEvent
事件来做一些处理,它会在用户更改插件配置后被触发Does this PR introduce a user-facing change?