支持配置目录列表缓存时间 - #56
Open
ovnrain wants to merge 4 commits into
Open
Conversation
- Add filesCacheTTL (default 5s) and urlCacheTTL to DriveClient with CLI/config support - Reduce default files cache from 2m to 5s so WebDAV clients see newly added files promptly - Allow disabling cache (0) or custom durations; preserve backward-compatible config loading - Update MustNew115DriveClient signature, GetFiles/GetFileURL caching logic, README and example config
- Change DefaultFilesCacheTTLSec and DefaultFilesCacheTTL from 5s to 2m - Update CLI flag defaults, godoc comments, README, and config.json.example - Longer default reduces request volume while users may still tune lower for freshness
- Update actions/checkout from v3 to v7 - Update actions/setup-go from v3 to v6 - Update docker/login-action from v2 to v4 - Update goreleaser/goreleaser-action from v3 to v7
- Add explicit permissions and named steps to ci and release workflows - Upgrade actions and switch to Go stable version with fetch-depth for tags - Migrate .goreleaser.yaml to version 2 with dockers_v2 for multi-arch images - Update Dockerfile to support TARGETPLATFORM and add ca-certificates - Update README badges, links, and Docker image references to new owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
增加了
--files-cache-ttl参数,支持配置目录列表缓存时间,可以让 115 新增的文件更快地在 webdav 客户端中展示已在本地测试成功