Adjust cache times based on various factors

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
api, backend

Direzione di ricerca

Start by locating XRay's cache policy and URL-fetch entry point, then read the related tests. Compare how the issue expects cache duration to vary for tweets, Instagram posts, and other URLs, and consider how clients could request a fresh fetch. Done means the caching behavior and any refresh option have clear, testable semantics for these cases.

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

Descrizione

  • Tweets can't be edited, so they can be cached for a long time. (It's possible that Twitter may change their image CDN URLs so can't be infinite)
  • Instagram posts can be edited, but most of the time the older a photo is the less likely it is to be edited
  • Other URLs should be more conservative about being cached, since people sometimes use this for testing whether their markup changes are working, or it's used when verifying webmentions for updates. Could probably use similar logic to cache older posts longer.

Possibly give clients a way to force XRay to fetch the post if the client knows it may have been updated such as from a webmention update.

Lingua principale
PHP
Stelle
96
Fork
17
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 aaronpk/XRay

Tutte le issue di aaronpk/XRay

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.