HelloZeroNet / HelloZeroNet/ZeroNet
Provide a way to change cache duration
- Lenguaje dominante
- JavaScript
- Estrellas
- 18.8k
- Forks
- 2.3k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- backend, cli, performance
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100