Skip to content

支持配置目录列表缓存时间 - #56

Open
ovnrain wants to merge 4 commits into
gaoyb7:mainfrom
ovnrain:main
Open

支持配置目录列表缓存时间#56
ovnrain wants to merge 4 commits into
gaoyb7:mainfrom
ovnrain:main

Conversation

@ovnrain

@ovnrain ovnrain commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

增加了 --files-cache-ttl 参数,支持配置目录列表缓存时间,可以让 115 新增的文件更快地在 webdav 客户端中展示

已在本地测试成功

ovnrain added 4 commits July 16, 2026 11:10
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant