Yurik added a subscriber: Yurik.
Yurik added a comment.

I agree that the query should go through varnish, but as usual - what is the 
purging policy? It will be very complicated to track each piece of data that 
appears in the result back to the original, and to invalidate it when original 
changes.   We could introduce "its ok to be stale" argument, and allow manual 
cache flushing.

- In VCL, check if request headers `Allow-Stale` is set, return the cached 
value.  Or use some max age setting.
- If request has no special headers, treat it as "cache for a minute maximum" - 
to prevent DOSing


TASK DETAIL
  https://phabricator.wikimedia.org/T126730

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Yurik
Cc: Yurik, hoo, Aklapper, aude, Izno, Wikidata-bugs, Mbch331, Jay8g, Ltrlg



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to