summaryrefslogtreecommitdiff
path: root/maintenance/rebuildmessages.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/rebuildmessages.php')
-rw-r--r--maintenance/rebuildmessages.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/maintenance/rebuildmessages.php b/maintenance/rebuildmessages.php
index dea70ef8..b0adc875 100644
--- a/maintenance/rebuildmessages.php
+++ b/maintenance/rebuildmessages.php
@@ -1,4 +1,9 @@
<?php
+/**
+ * This script purges all language messages from memcached
+ * @file
+ * @ingroup Maintenance
+ */
require_once( 'commandLine.inc' );
@@ -10,8 +15,8 @@ if( $wgLocalDatabases ) {
foreach( $databases as $db ) {
echo "Deleting message cache for {$db}... ";
- $wgMessageCache->mMemc->delete( "{$db}:messages" );
+ $messageMemc->delete( "{$db}:messages" );
if( $wgEnableSidebarCache )
- $wgMessageCache->mMemc->delete( "{$db}:sidebar" );
+ $messageMemc->delete( "{$db}:sidebar" );
echo "Deleted\n";
-} \ No newline at end of file
+}