dify/api/services/enterprise
GareArc 858ccd8746
feat: add Redis caching for enterprise license status
Cache license status for 10 minutes to reduce HTTP calls to enterprise API.
Only caches license status, not full system features.

Changes:
- Add EnterpriseService.get_cached_license_status() method
- Cache key: enterprise:license:status
- TTL: 600 seconds (10 minutes)
- Graceful degradation: falls back to API call if Redis fails

Performance improvement:
- Before: HTTP call (~50-200ms) on every API request
- After: Redis lookup (~1ms) on cached requests
- Reduces load on enterprise service by ~99%
2026-03-04 21:28:11 -08:00
..
__init__.py Feat/enterprise sso (#3602) 2024-04-18 17:33:32 +08:00
account_deletion_sync.py Squash merge 1.12.1-otel-ee into release/e-1.12.1 2026-03-04 16:59:37 -08:00
base.py fix: handle enterprise API errors properly to prevent KeyError crashes 2026-03-04 19:53:43 -08:00
enterprise_service.py feat: add Redis caching for enterprise license status 2026-03-04 21:28:11 -08:00
plugin_manager_service.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
workspace_sync.py feat: credential sync fix for enterprise edition (#30626) 2026-01-14 23:33:24 -08:00