Send cache purges for action=raw after editing user css/js
authorBrian Wolff <bawolff+wn@gmail.com>
Wed, 13 Nov 2013 03:00:07 +0000 (23:00 -0400)
committerKrinkle <krinklemail@gmail.com>
Fri, 3 Jan 2014 18:43:23 +0000 (18:43 +0000)
commit6e2be46e82851acc787b82f8a5be694f46086897
tree0a463d5bdbebba0385c24ca03db9621a1e9e1a32
parent3ebfa0acfc60af9734161a20947b8fce6c19981e
Send cache purges for action=raw after editing user css/js

These types of requests can be cached for a short time (~5 min) in
Squid/Varnish.

Change importScript to be consistent with importStylesheet in the query
parameter order (title, action, ctype).

We only send purges for the exact urls as used by importScript and
importStylesheet.

Note: ResourceLoader things have their cache handled separately and
aren't affected by this change.

Users like instant updating of scripts after having changed them.

Bug: 56874
Change-Id: Idaa8552cf371dbafeb8b730f35b3b5c4fc339fb0
includes/Title.php
includes/actions/RawAction.php
skins/common/wikibits.js