mirror of
https://github.com/langgenius/dify.git
synced 2026-03-14 13:51:33 +08:00
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% |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| account_deletion_sync.py | ||
| base.py | ||
| enterprise_service.py | ||
| plugin_manager_service.py | ||
| workspace_sync.py | ||