From f46917fd9b253faacc792050b3c2be59b0094232 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 1 Mar 2004 05:51:55 +0000 Subject: [PATCH] Clear message cache on rebuild --- RELEASE-NOTES | 18 +++++++++++++----- includes/DefaultSettings.php | 2 +- includes/MessageCache.php | 4 ++++ maintenance/InitialiseMessages.inc | 10 ++++++++++ 4 files changed, 28 insertions(+), 6 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ef93b6300e..cc46dca3d0 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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. diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 331d668c61..d35ad00434 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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 diff --git a/includes/MessageCache.php b/includes/MessageCache.php index 681078617a..5dd1516ddf 100755 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -200,5 +200,9 @@ class MessageCache } return $message; } + + function disable() { $this->mDisable = true; } + function enable() { $this->mDisable = false; } + } ?> diff --git a/maintenance/InitialiseMessages.inc b/maintenance/InitialiseMessages.inc index 67c24c136c..24917f03d8 100755 --- a/maintenance/InitialiseMessages.inc +++ b/maintenance/InitialiseMessages.inc @@ -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 -- 2.20.1