r28789 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28788‎ | r28789 | r28790 >
Date:07:44, 23 December 2007
Author:vasilievvv
Status:old
Tags:
Comment:
Simple script to reset message cache
Modified paths:
  • /trunk/phase3/maintenance/rebuildmessages.php (added) (history)

Diff [purge]

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
117 + native

Status & tagging log