Merge "normalize filenames of maintenance scripts"
This commit is contained in:
commit
8a77d9a67d
12 changed files with 23 additions and 16 deletions
|
|
@ -294,6 +294,13 @@ changes to languages because of Bugzilla reports.
|
|||
Vector extension (and possibly disable its features using config settings if
|
||||
you don't want them).
|
||||
* Experimental IBM DB2 support was removed due to lack of interest and maintainership
|
||||
* BREAKING CHANGE: Filenames of maintenance scripts were standardized into lowerCamelCase
|
||||
format, and made more explicit: clear_stats.php -> clearCacheStats.php;
|
||||
clear_interwiki_cache.php -> clearInterwikiCache.php; initStats.php -> initSiteStats.php;
|
||||
proxy_check.php -> proxyCheck.php; stats.php -> showCacheStats.php;
|
||||
showStats.php -> showSiteStats.php. Class names were renamed accordingly:
|
||||
clear_stats -> ClearCacheStats; InitStats -> InitSiteStats; CacheStats -> ShowCacheStats
|
||||
ShowStats -> ShowSiteStats.
|
||||
|
||||
== Compatibility ==
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ subdirectories, all of which have unique purposes.
|
|||
level /maintenance directory.
|
||||
|
||||
Example:
|
||||
php clear_stats.php
|
||||
php clearCacheStats.php
|
||||
|
||||
The following parameters are available to all maintenance scripts
|
||||
--help : Print a help message
|
||||
|
|
|
|||
|
|
@ -237,9 +237,9 @@ Statistics:
|
|||
controlled by: $wgStatsMethod
|
||||
key: $wgDBname:stats:$key
|
||||
ex: wikibd:stats:request_with_session
|
||||
stores: counter for statistics (see maintenance/stats.php script)
|
||||
stores: counter for statistics (see maintenance/showCacheStats.php script)
|
||||
expiry: none (?)
|
||||
cleared by: maintenance/clear_stats.php script
|
||||
cleared by: maintenance/clearCacheStats.php script
|
||||
|
||||
User:
|
||||
key: $wgDBname:user:id:$sId
|
||||
|
|
|
|||
|
|
@ -4406,7 +4406,7 @@ $wgBlockOpenProxies = false;
|
|||
/** Port we want to scan for a proxy */
|
||||
$wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
|
||||
/** Script used to scan */
|
||||
$wgProxyScriptPath = "$IP/maintenance/proxy_check.php";
|
||||
$wgProxyScriptPath = "$IP/maintenance/proxyCheck.php";
|
||||
/** */
|
||||
$wgProxyMemcExpiry = 86400;
|
||||
/** This should always be customised in LocalSettings.php */
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* A special page called by proxy_check.php to block open proxies
|
||||
* A special page called by proxyCheck.php to block open proxies
|
||||
*
|
||||
* @ingroup SpecialPage
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ installations.
|
|||
runJobs.php
|
||||
Immediately complete all jobs in the job queue
|
||||
|
||||
stats.php
|
||||
showCacheStats.php
|
||||
Show all statistics stored in the cache
|
||||
|
||||
undelete.php
|
||||
|
|
@ -106,4 +106,4 @@ installations.
|
|||
Update pages restriction to the new schema
|
||||
|
||||
userOptions.php
|
||||
Change user options
|
||||
Change user options
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ require_once( __DIR__ . '/Maintenance.php' );
|
|||
*
|
||||
* @ingroup Maintenance
|
||||
*/
|
||||
class clear_stats extends Maintenance {
|
||||
class ClearCacheStats extends Maintenance {
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
|
|
@ -56,5 +56,5 @@ class clear_stats extends Maintenance {
|
|||
}
|
||||
}
|
||||
|
||||
$maintClass = "clear_stats";
|
||||
$maintClass = "ClearCacheStats";
|
||||
require_once( RUN_MAINTENANCE_IF_MAIN );
|
||||
|
|
@ -30,7 +30,7 @@ require_once( __DIR__ . '/Maintenance.php' );
|
|||
*
|
||||
* @ingroup Maintenance
|
||||
*/
|
||||
class InitStats extends Maintenance {
|
||||
class InitSiteStats extends Maintenance {
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->mDescription = "Re-initialise the site statistics tables";
|
||||
|
|
@ -84,5 +84,5 @@ class InitStats extends Maintenance {
|
|||
}
|
||||
}
|
||||
|
||||
$maintClass = "InitStats";
|
||||
$maintClass = "InitSiteStats";
|
||||
require_once( RUN_MAINTENANCE_IF_MAIN );
|
||||
|
|
@ -28,7 +28,7 @@ require_once( __DIR__ . '/Maintenance.php' );
|
|||
*
|
||||
* @ingroup Maintenance
|
||||
*/
|
||||
class CacheStats extends Maintenance {
|
||||
class ShowCacheStats extends Maintenance {
|
||||
|
||||
public function __construct() {
|
||||
$this->mDescription = "Show statistics from the cache";
|
||||
|
|
@ -102,5 +102,5 @@ class CacheStats extends Maintenance {
|
|||
}
|
||||
}
|
||||
|
||||
$maintClass = "CacheStats";
|
||||
$maintClass = "ShowCacheStats";
|
||||
require_once( RUN_MAINTENANCE_IF_MAIN );
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
* @file
|
||||
* @ingroup Maintenance
|
||||
* @author Antoine Musso <hashar at free dot fr>
|
||||
* Based on initStats.php by:
|
||||
* Based on initSiteStats.php by:
|
||||
* @author Brion Vibber
|
||||
* @author Rob Church <robchur@gmail.com>
|
||||
*
|
||||
|
|
@ -36,7 +36,7 @@ require_once( __DIR__ . '/Maintenance.php' );
|
|||
*
|
||||
* @ingroup Maintenance
|
||||
*/
|
||||
class ShowStats extends Maintenance {
|
||||
class ShowSiteStats extends Maintenance {
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->mDescription = "Show the cached statistics";
|
||||
|
|
@ -69,5 +69,5 @@ class ShowStats extends Maintenance {
|
|||
}
|
||||
}
|
||||
|
||||
$maintClass = "ShowStats";
|
||||
$maintClass = "ShowSiteStats";
|
||||
require_once( RUN_MAINTENANCE_IF_MAIN );
|
||||
Loading…
Reference in a new issue