Optimize summary-based extension edit stash caches
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 30 Jul 2016 06:42:05 +0000 (23:42 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 11 Aug 2016 00:50:19 +0000 (17:50 -0700)
commit3853783ef73f22daf175afa8a59800b8b4f2726c
tree5da9a0d6ad80030f446f234634b097dc802734ac
parent5749a91419d9723a109b4d576e5e7f86f2c97e66
Optimize summary-based extension edit stash caches

* Send stash requests when the summary changes, so that things like
  AbuseFilter caching have a higher hit rate.
* Make the backend API skip parsing if a fresh cache is already present.
  This makes requests for summary-only changes much faster and more likely
  to finish in time.
* Avoid sending the full text if only the summary changed since the
  last successful stash. This works via an optional stashedtexthash
  parameter to the API.
* Also always apply the lock in parseAndStash(), even for VE.

Change-Id: I9bfd74cf05411853b675c6f54ff5d8934bcfc54c
includes/api/ApiStashEdit.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json
resources/src/mediawiki.action/mediawiki.action.edit.stash.js