PasswordFactory themselves.
** A new constructor, User::newSystemUser(), has been added to simplify the
creation of passwordless "system" users for logged actions.
+* $wgMaxSquidPurgeTitles was removed.
=== New features in 1.27 ===
* $wgDataCenterId and $wgDataCenterRoles where added, which will serve as
*/
$wgSquidServersNoPurge = array();
-/**
- * Maximum number of titles to purge in any one client operation
- */
-$wgMaxSquidPurgeTitles = 400;
-
/**
* Whether to use a Host header in purge requests sent to the proxy servers
* configured in $wgSquidServers. Set this to false to support Squid
* @ingroup Cache
*/
class SquidUpdate implements DeferrableUpdate {
- /**
- * Collection of URLs to purge.
- * @var array
- */
- protected $urlArr;
+ /** @var string[] Collection of URLs to purge */
+ protected $urls = array();
/**
* @param array $urlArr Collection of URLs to purge
*/
public function __construct( array $urlArr ) {
- global $wgMaxSquidPurgeTitles;
-
// Remove duplicate URLs from list
- $urlArr = array_unique( $urlArr );
- if ( count( $urlArr ) > $wgMaxSquidPurgeTitles ) {
- // Truncate to desired maximum URL count
- $urlArr = array_slice( $urlArr, 0, $wgMaxSquidPurgeTitles );
- }
- $this->urlArr = $urlArr;
+ $this->urls = array_unique( $urlArr );
}
/**
* Purges the list of URLs passed to the constructor.
*/
public function doUpdate() {
- self::purge( $this->urlArr );
+ self::purge( $this->urls );
}
/**
* @throws MWException
* @param array $urlArr Collection of URLs to purge
*/
- public static function HTCPPurge( $urlArr ) {
+ protected static function HTCPPurge( $urlArr ) {
global $wgHTCPRouting, $wgHTCPMulticastTTL;
// HTCP CLR operation