Smalyshev added a comment. |
So, whenever RESTbase serves a URL, it has to know which key(s) to should put into the header.
But restbase doesn't serve wikidata URLs, does it?
I don't see a way to do any of this with the existing CdnCacheUpdate interface.
Well, this interface and adjacent ones like getCacheableUrls() used in EntityDataRequestHandler.php are now being used when we wanted to purge all resource's dependent pages. Now we'll do it via xkeys, so I wonder how. Will we drop support for getCacheableUrls()? Replace it with some other API?
we support only one kind of resource that things can depend on: page content, identified by a title
I.e. the key would be page title? That works, but we'd need to define encoding - urlencodes, space vs. _, etc. (and I wonder if we need to also consider language variants here).
Otherwise the design sounds good, but I think while we're using the title, we should not create dependencies on it being actual title (if possible), so later if we want other keys we could add them.
Cc: tstarling, Smalyshev, hoo, BBlack, Lydia_Pintscher, Aklapper, daniel, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs