Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望增加按存储来全局更新缓存的api、缓存重新刷新的webhook #7156

Open
4 tasks done
z-henry opened this issue Sep 10, 2024 · 0 comments
Open
4 tasks done
Labels
enhancement New feature or request

Comments

@z-henry
Copy link

z-henry commented Sep 10, 2024

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

1.按存储来全局更新缓存的api: 存储会设置缓存过期时间,可以触发全局缓存刷新。
我在api文档中只找到了/api/fs/listrefresh参数,这个api只会刷新当级目录,如果当级目录的子文件夹内发生修改,有时无法更新。
所以如果提供一个能像缓存过期后触发某个存储全局更新缓存的api,可能会更方便一些。
2. 缓存重新刷新的webhook:当定时过期触发、调用1中说的全局更新缓存之后,如果提供一个webhook,设置好自己的回调地址,在某些场景中让轮询变为事件驱动,可以提升效率节省资源。

Suggested solution / 实现思路

将程序内置的定时刷新缓存功能封装,提供api调用
当封装的功能运行结束,触发webhook,调用预设的url

Additional context / 附件

No response

@z-henry z-henry added the enhancement New feature or request label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant