API DB commit and sticky DC cookie fixes
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 10 Nov 2015 06:57:00 +0000 (22:57 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 19 Nov 2015 20:33:28 +0000 (12:33 -0800)
commit85edec239e264068972ce3b880a2d5c55c013a58
tree3697b2d8e90e79d224fb48d1080bd6f54d78a4af
parentda4a378e74f2e3636b4f1132e4732ec3c2637eb9
API DB commit and sticky DC cookie fixes

* Make sure the API commits DBs *before* sending the
  response, in case something goes south which would
  make a sent response wrong.
* Make sticky DC cookies trigger with api.php too.
* Make sure UseDC cookies do not end up with a prefix.
  VCL rules should not have to deal with having a DB
  name as a prefix or such. This was an oversight.

Change-Id: I9e4090ab15c1c1493b0589a710184745dac9b0c1
includes/MediaWiki.php
includes/api/ApiMain.php