From: Aaron Schulz Date: Mon, 19 Oct 2015 15:24:23 +0000 (-0700) Subject: Deprecate redundant SquidUpdate::newSimplePurge() X-Git-Tag: 1.31.0-rc.0~9350^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=670612f06c8e1d2c7c2fb5d3c38d34dea7fc81c9;p=lhc%2Fweb%2Fwiklou.git Deprecate redundant SquidUpdate::newSimplePurge() Change-Id: Id6d92fca2a2b87e23930946f054cecd1f6d433be --- diff --git a/includes/deferred/SquidUpdate.php b/includes/deferred/SquidUpdate.php index e148f56a15..a7b613f8f7 100644 --- a/includes/deferred/SquidUpdate.php +++ b/includes/deferred/SquidUpdate.php @@ -75,6 +75,7 @@ class SquidUpdate { /** * @param Title $title * @return SquidUpdate + * @deprecated 1.27 */ public static function newSimplePurge( Title $title ) { $urlArr = $title->getSquidURLs(); diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index 3ec3e89bf9..29038c7e07 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -1163,7 +1163,7 @@ class WikiPage implements Page, IDBAccessObject { $title->invalidateCache(); if ( $wgUseSquid ) { // Send purge now that page_touched update was committed above - $update = SquidUpdate::newSimplePurge( $title ); + $update = new SquidUpdate( $title->getSquidURLs() ); $update->doUpdate(); } } );