Purge upstream caches when deleting file assets.
authorBryan Davis <bd808@wikimedia.org>
Mon, 19 Aug 2013 18:11:44 +0000 (18:11 +0000)
committerBryan Davis <bd808@wikimedia.org>
Mon, 19 Aug 2013 18:11:44 +0000 (18:11 +0000)
commitede015209d4c24f0d48e7848fa37cc697cb7c404
tree5d6f04091e8d382f2f375a776c24896ca42480cc
parent5c5fb511c70346a660cb6aa388cc677e11d3bdab
Purge upstream caches when deleting file assets.

Inform upstream caches when a file asset is deleted by calling
SquidUpdate::purge(). This helps prevent unintentional information leakage in
the event that the asset is being deleted for reasons of license or content.

Bug: 51064
Change-Id: Ibf57e8f32d7dd04b8508a69706be5a40b49e5abd
includes/filerepo/file/LocalFile.php
includes/revisiondelete/RevisionDelete.php