Kaldari has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/401417 )
Change subject: Adding some comments to the maintenance scripts
......................................................................
Adding some comments to the maintenance scripts
Change-Id: Iabdcf87591f7e29e2d1417ed5eb7598b3982b3cb
---
M maintenance/checkContacts.php
M maintenance/populateCache.php
2 files changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CongressLookup
refs/changes/17/401417/1
diff --git a/maintenance/checkContacts.php b/maintenance/checkContacts.php
index 212e83b..06e6e89 100644
--- a/maintenance/checkContacts.php
+++ b/maintenance/checkContacts.php
@@ -1,6 +1,10 @@
<?php
/**
+ * This script checks all the House and Senate contact links in the database
and reports
+ * any that are dead or broken. Note that some contact links are actually
email addresses.
+ *
* @ingroup Maintenance
+ */
*/
if ( getenv( 'MW_INSTALL_PATH' ) ) {
$IP = getenv( 'MW_INSTALL_PATH' );
@@ -55,6 +59,7 @@
if ( $bits['scheme'] == 'mailto' ) {
$ok = true; // assume OK
} elseif ( in_array( $bits['scheme'], array(
'http', 'https' ) ) ) {
+ // @TODO: Update this to use the
DeadlinkChecker library instead.
$req = MWHttpRequest::factory( $url,
array(
'method' =>
'GET',
'timeout' => 8,
diff --git a/maintenance/populateCache.php b/maintenance/populateCache.php
index 423e129..f4bad70 100644
--- a/maintenance/populateCache.php
+++ b/maintenance/populateCache.php
@@ -1,5 +1,7 @@
<?php
/**
+ * This script pre-populates the server-side cache for all possible zip code
look-ups.
+ *
* @ingroup Maintenance
*/
if ( getenv( 'MW_INSTALL_PATH' ) ) {
--
To view, visit https://gerrit.wikimedia.org/r/401417
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iabdcf87591f7e29e2d1417ed5eb7598b3982b3cb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CongressLookup
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits