diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
commit | 370e83bb0dfd0c70de268c93bf07ad5ee0897192 (patch) | |
tree | 491674f4c242e4d6ba0d04eafa305174c35a3391 /maintenance/updateSpecialPages.php | |
parent | f4debf0f12d0524d2b2427c55ea3f16b680fad97 (diff) |
Update auf 1.13.0
Diffstat (limited to 'maintenance/updateSpecialPages.php')
-rw-r--r-- | maintenance/updateSpecialPages.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/maintenance/updateSpecialPages.php b/maintenance/updateSpecialPages.php index 5e0f2ceb..ac7ee11f 100644 --- a/maintenance/updateSpecialPages.php +++ b/maintenance/updateSpecialPages.php @@ -1,6 +1,11 @@ <?php - -# Run this script periodically if you have miser mode enabled, to refresh the caches +/** + * Run this script periodically if you have miser mode enabled, to refresh the + * caches + * + * @file + * @ingroup Maintenance + */ $options = array('only','help'); require_once( 'commandLine.inc' ); @@ -73,12 +78,12 @@ foreach ( $wgQueryPages as $page ) { } # Reopen any connections that have closed - if ( !$wgLoadBalancer->pingAll()) { + if ( !wfGetLB()->pingAll()) { print "\n"; do { print "Connection failed, reconnecting in 10 seconds...\n"; sleep(10); - } while ( !$wgLoadBalancer->pingAll() ); + } while ( !wfGetLB()->pingAll() ); print "Reconnected\n\n"; } else { # Commit the results |