Clear message cache on rebuild
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 1 Mar 2004 05:51:55 +0000 (05:51 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 1 Mar 2004 05:51:55 +0000 (05:51 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/MessageCache.php
maintenance/InitialiseMessages.inc

index ef93b63..cc46dca 100644 (file)
@@ -1,11 +1,14 @@
 = MediaWiki release notes =
 
-== Version 1.2.0rc1, 2004-02-28 ==
+== Version 1.3.0pre-alpha ==
 
-This is a RELEASE CANDIDATE for the new production release. It is more or
-less in sync with what is running on Wikipedia right now. There may be
-some interesting bugs, it may eat all your data, and documentation may
-not be up to date. If you use this on a production site, BE CAREFUL.
+Various things will be happening for 1.3.0...
+* More advanced parser
+* New schema...
+* Magic goodies!
+* stuff
+
+== Version 1.2.0 ==
 
 New features in 1.2:
 * Image resizing/thumbnail generation
@@ -21,11 +24,16 @@ New features in 1.2:
 * Editing toolbar to demonstrate wiki syntax to newbies
   (off by default in user preferences)
 * Support for authenticated SMTP outgoing e-mail (experimental)
+* It's now possible to assign sysop accounts from within the wiki.
+  An account with this ability must be labeled with the "bureaucrat"
+  privilege, such as the 'Developer' account created by the install.
 
 Fixes and tweaks:
 * Should work out of the box on MySQL 3.2.x again. On 4.x set
   $wgEnablePersistentLC = true; to turn on the link cache table
   for a slight rendering speed boost.
+* rebuildMessages.php can now selectively update new messages, or
+  overwrite everything.
 * Works with short tags disabled.
 * Various bug fixes.
 * Other stuff we forgot.
index 331d668..d35ad00 100644 (file)
@@ -6,7 +6,7 @@
 # like $wgScriptPath, you must also localize everything that
 # depends on it.
 
-$wgVersion                     = "1.2.0rc1";
+$wgVersion                     = "1.3.0pre-alpha";
 
 $wgSitename         = "MediaWiki"; # Please customize!
 $wgMetaNamespace    = FALSE; # will be same as you set $wgSitename
index 6810786..5dd1516 100755 (executable)
@@ -200,5 +200,9 @@ class MessageCache
                }
                return $message;
        }
+
+       function disable() { $this->mDisable = true; }
+       function enable() { $this->mDisable = false; }
+
 }
 ?>
index 67c24c1..24917f0 100755 (executable)
@@ -6,6 +6,8 @@
 function initialiseMessages( $overwrite = false) {
        global $wgLang, $wgScript, $wgServer, $wgAllMessagesEn;
        global $wgOut, $wgArticle, $wgUser;
+       global $wgMessageCache, $wgMemc, $wgDBname, $wgDatabaseMessages;
+       $wgMessageCache->disable();
 
        $fname = "initialiseMessages";
        $ns = NS_MEDIAWIKI;
@@ -123,5 +125,13 @@ function initialiseMessages( $overwrite = false) {
        } else {
                $wgArticle->insertNewArticle( $navText, '', 0, 0 );
        }
+       
+       if( $wgDatabaseMessages ) {
+               print "Clearing message cache...";
+               $wgMemc->delete( "$wgDBname:messages" );
+               print "Done.\n";
+       }
+
 }
 
+?>
\ No newline at end of file