Skip to content

Conversation

Sagit-chu
Copy link
Owner

Synced from upstream PR: songquanpeng#2312

功能改进:

  1. 修复 InitChannelCache() 基于 abilities 表构建准确缓存
  2. 添加缓存失效函数 (InvalidateChannelCache, InvalidateGroupModelCache, InvalidateUserCache)
  3. 修复 UpdateChannelStatusById() 立即同步缓存
  4. 修复 Channel.Update() 配置变更时的缓存同步
  5. 添加全面的缓存测试

- Fix InitChannelCache to use abilities table for accurate cache building
- Add cache invalidation functions (InvalidateChannelCache, InvalidateGroupModelCache, InvalidateUserCache)
- Update UpdateChannelStatusById to immediately invalidate related caches
- Update Channel.Update() to invalidate caches when configuration changes
- Add comprehensive cache tests
- Ensure real-time cache sync for channel status changes

This fixes the issue where channel status changes (enable/disable)
required service restart to take effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants