Clear message cache on rebuild
This commit is contained in:
parent
38b72bb4a1
commit
f46917fd9b
4 changed files with 28 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -200,5 +200,9 @@ class MessageCache
|
|||
}
|
||||
return $message;
|
||||
}
|
||||
|
||||
function disable() { $this->mDisable = true; }
|
||||
function enable() { $this->mDisable = false; }
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Reference in a new issue