daniel added a comment.

The protection status for each wiki is recorded in that wiki's database. Running a separate query for each wiki takes too long, especially since this information is not cacheable, and has to be re-checked on every page view. The query could be batched per db-cluster using a UNION query, but I'm not sure if there is a good way to get the per-wiki configuration info necessary for this.

The fact that this information is not cacheable also means it cannot be included in the web cache (CDN) for anonymous views. It would probably have to be added dynamically, using JS, which means an additional HTTP round trip.


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

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

To: daniel
Cc: daniel, Aklapper, abian, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to