[PR #472] [MERGED] fix:Invalidate cache when enable endpoint. #527

Closed
opened 2026-02-16 01:16:14 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/472
Author: @dancing-monkey
Created: 10/9/2025
Status: Merged
Merged: 10/15/2025
Merged by: @Yeuoly

Base: mainHead: fix/endpoint-not-found


📝 Commits (1)

  • ea0c08a Invalidate cache when enable endpoint.

📊 Changes

3 files changed (+43 additions, -27 deletions)

View changed files

📝 internal/server/endpoint.go (+3 -9)
📝 internal/service/endpoint.go (+28 -10)
📝 internal/service/install_service/state.go (+12 -8)

📄 Description

Description

Please provide a brief description of the changes made in this pull request.
Please also include the issue number if this is related to an issue using the format Fixes #123 or Closes #123.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Added cache invalidation mechanism when enabling an endpoint to ensure consistency between the endpoint state and its cached representation.
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/472 **Author:** [@dancing-monkey](https://github.com/dancing-monkey) **Created:** 10/9/2025 **Status:** ✅ Merged **Merged:** 10/15/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix/endpoint-not-found` --- ### 📝 Commits (1) - [`ea0c08a`](https://github.com/langgenius/dify-plugin-daemon/commit/ea0c08a3a4b602a5705d37a488adef8ac0eb2079) Invalidate cache when enable endpoint. ### 📊 Changes **3 files changed** (+43 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `internal/server/endpoint.go` (+3 -9) 📝 `internal/service/endpoint.go` (+28 -10) 📝 `internal/service/install_service/state.go` (+12 -8) </details> ### 📄 Description ## Description Please provide a brief description of the changes made in this pull request. Please also include the issue number if this is related to an issue using the format `Fixes #123` or `Closes #123`. ## Type of Change - [x] Bug fix - [ ] New feature - [ ] Refactor - [ ] Performance improvement - [ ] Other ## Essential Checklist ### Testing - [x] I have tested the changes locally and confirmed they work as expected - [ ] I have added unit tests where necessary and they pass successfully ### Bug Fix (if applicable) - [ ] I have used GitHub syntax to close the related issue (e.g., `Fixes #123` or `Closes #123`) ## Additional Information Added cache invalidation mechanism when enabling an endpoint to ensure consistency between the endpoint state and its cached representation. <img width="1649" height="285" alt="image" src="https://github.com/user-attachments/assets/3627f91e-6e80-4155-aa2c-7933b726efe9" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:16:14 -05:00
yindo closed this issue 2026-02-16 01:16:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#527