HelloZeroNet / HelloZeroNet/ZeroNet
Provide a way to change cache duration
- 主要言語
- JavaScript
- スター
- 18.8k
- フォーク
- 2.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
**Is your feature request related to a problem? Please describe.**
ZeroNet only supports cache for around 20 minutes and it is not possible to configure this. However, some sites are updated more frequently and some are updated less frequently.
**Describe the solution you'd like**
It should be possible to change cache duration both by instance owner (with `--cache_for` argument) and by site owner (with `content.json`).
Command argument should be default cache duration or all sites, but `content.json` entry should overwrite it. Site owners should also be able to specify cache duration for specific files and specific content types.
This would enable to cache sites that don't update often for long time and sites that update quickly for short time.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Begin by locating the command-line handling for --cache_for and the content.json parsing path; the issue names no source files or tests. Done means an instance-wide default works, site settings override it, and sites can specify durations for individual files and content types, with tests covering those cases.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend, cli, performance
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100