dify/api/core/trigger
Harry cf532e5e0d feat(trigger): add context caching for trigger providers
- Add plugin_trigger_providers and plugin_trigger_providers_lock to contexts module
- Implement caching mechanism in TriggerManager.get_trigger_provider() method
- Cache fetched trigger providers to reduce repeated daemon calls
- Use double-check locking pattern for thread-safe cache access

This follows the same pattern as ToolManager.get_plugin_provider() to improve performance
by avoiding redundant requests to the daemon when accessing trigger providers.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-05 14:30:10 +08:00
..
entities refactor(trigger): update trigger provider API and clean up unused classes 2025-09-04 17:45:15 +08:00
utils feat(trigger): enhance trigger subscription management and cache handling 2025-09-05 14:30:10 +08:00
__init__.py feat(trigger): add trigger provider management and webhook handling functionality 2025-09-03 14:53:26 +08:00
errors.py feat(trigger): add plugin trigger workflow support and refactor trigger system 2025-09-04 13:20:43 +08:00
provider.py feat(trigger): integrate plugin icon retrieval into trigger provider 2025-09-05 12:01:41 +08:00
trigger_manager.py feat(trigger): add context caching for trigger providers 2025-09-05 14:30:10 +08:00