Anomie created this task.
Anomie added projects: MediaWiki-extensions-WikibaseRepository, Technical-Debt.
Herald added a subscriber: Aklapper.
Herald added a project: Wikidata.

TASK DESCRIPTION

repo/includes/Content/EntityContent.php calls $output->recordOption( 'editsection' ) to try to fragment the parser cache on whether section edit links are included.

MediaWiki core has not so fragmented the cache since February 2015, and with the recent ParserOptions changes we now have to maintain a hack to keep that varying working just for Wikibase. A new fix for T85252: Edit buttons are getting cached, although their visibility depends on user rights is needed so we can remove that hack.

Suggestions:

  • Do edit links after the fact somehow instead of fragmenting the cache, like core does.
  • Use ParserOptions::addExtraKey() to do the fragmenting.
  • Use the new ParserOptionsRegister hook to register your own cache-fragmenting option for use in place of 'editsection'.

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

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

To: Anomie
Cc: Anomie, Aklapper, GoranSMilovanovic, QZanden, Izno, Wikidata-bugs, aude, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to