X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/maintenance/refreshImageCount.php diff --git a/maintenance/refreshImageCount.php b/maintenance/refreshImageCount.php deleted file mode 100644 index f9bdeea7..00000000 --- a/maintenance/refreshImageCount.php +++ /dev/null @@ -1,54 +0,0 @@ -mDescription = "Resets ss_image count, forcing slaves to pick it up."; - } - - public function execute() { - $dbw = wfGetDB( DB_MASTER ); - - // Load the current value from the master - $count = $dbw->selectField( 'site_stats', 'ss_images' ); - - $this->output( wfWikiID() . ": forcing ss_images to $count\n" ); - - // First set to NULL so that it changes on the master - $dbw->update( 'site_stats', - array( 'ss_images' => null ), - array( 'ss_row_id' => 1 ) ); - - // Now this update will be forced to go out - $dbw->update( 'site_stats', - array( 'ss_images' => $count ), - array( 'ss_row_id' => 1 ) ); - } -} - -$maintClass = "RefreshImageCount"; -require_once( RUN_MAINTENANCE_IF_MAIN ); -