AlistGo / AlistGo/alist

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

Aperta
#7,156 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Go
Stelle
50.2k
Fork
7.9k
Merge medio
7g 21h
PR unite (30g)
6

Descrizione

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
- [X] I'm sure there are no duplicate issues or discussions.
- [X] I'm sure this feature is not implemented.
- [X] I'm sure it's a reasonable and popular requirement.

### Description of the feature / 需求描述

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

### Suggested solution / 实现思路

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

### Additional context / 附件

_No response_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.