Index: trunk/phase3/maintenance/rebuildmessages.php |
— | — | @@ -0,0 +1,15 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +require_once( 'commandLine.inc' ); |
| 5 | + |
| 6 | +if( $wgLocalDatabases ) { |
| 7 | + $databases = $wgLocalDatabases; |
| 8 | +} else { |
| 9 | + $databases = array( $wgDBname ); |
| 10 | +} |
| 11 | + |
| 12 | +foreach( $databases as $db ) { |
| 13 | + echo "Deleting message cache for {$db}... "; |
| 14 | + $wgMessageCache->mMemc->delete( "{$db}:messages" ); |
| 15 | + echo "Deleted"; |
| 16 | +} |
\ No newline at end of file |
Property changes on: trunk/phase3/maintenance/rebuildmessages.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 17 | + native |