Publish: a published edit is live without a deploy (cache and freshness)

Aperta
#20 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cloud, markdown, sqlite
Ambito
cloud, performance

Direzione di ricerca

Start with the Worker's read path and the Publish flow that writes new post text, since the issue leaves the caching mechanism open and it depends on #19. Pick one approach (version key, cache tags with purge, or short TTL with stale-while-revalidate) and record its failure mode in the README. Done when a changed post is served fresh within 5 seconds while unchanged pages stay cached, and a check covers both cases.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Part of #16. Depends on #19.

A published edit should be live without a deploy. Decide and implement how the Worker caches reads and how Publish makes a change visible: a version key bumped on every publish that the Worker checks, cache tags or the Cache API with purge, or short TTLs with stale-while-revalidate.

Acceptance criteria

  • After Publish returns, a request to the post's page serves the new text within the documented time (target: under 5 seconds).
  • Unchanged pages keep being served from cache.
  • The mechanism is documented in the README with its failure mode (what a reader sees if the purge fails).
  • A check proves a changed post is served fresh and an unchanged one is not refetched.
Lingua principale
HTML
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mrgnw/cfcms

Tutte le issue di mrgnw/cfcms

Issue simili

Altre issue su Cloud

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.