From: Domas Mituzas Date: Wed, 4 May 2005 19:24:10 +0000 (+0000) Subject: revert my cruft regarding incremental message cache building, it targetted wrong... X-Git-Tag: 1.5.0alpha2~317 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=83514a73a5cc75aea5fb2f1a836b2a68ea768d03;p=lhc%2Fweb%2Fwiklou.git revert my cruft regarding incremental message cache building, it targetted wrong trouble in wrong path anyway --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 971bb98106..2fb94b98be 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -396,7 +396,6 @@ $wgTranslateNumerals = true; # Interface messages will be get from the database. $wgUseDatabaseMessages = true; $wgMsgCacheExpiry = 86400; -$wgPartialMessageCache = false; # Whether to enable language variant conversion. Currently only zh # supports this function, to convert between Traditional and Simplified diff --git a/includes/MessageCache.php b/includes/MessageCache.php index 64336585a2..8af4484f91 100755 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -131,20 +131,10 @@ class MessageCache * Loads all or main part of cacheable messages from the database */ function loadFromDB() { - global $wgPartialMessageCache; $fname = 'MessageCache::loadFromDB'; $dbr =& wfGetDB( DB_SLAVE ); $conditions = array( 'page_is_redirect' => 0, 'page_namespace' => NS_MEDIAWIKI); - if ($wgPartialMessageCache) { - wfDebugDieBacktrace( "Confused about how this works." ); - if (is_array($wgPartialMessageCache)) { - $conditions['page_title']=$wgPartialMessageCache; - } else { - require_once("MessageCacheHints.php"); - $conditions['page_title']=MessageCacheHints::get(); - } - } $res = $dbr->select( array( 'page', 'revision', 'text' ), array( 'page_title', 'old_text', 'old_flags' ), 'page_is_redirect=0 AND page_namespace='.NS_MEDIAWIKI.' AND page_latest=rev_id AND rev_text_id=old_id', diff --git a/includes/MessageCacheHints.php b/includes/MessageCacheHints.php deleted file mode 100644 index 70b720fcdf..0000000000 --- a/includes/MessageCacheHints.php +++ /dev/null @@ -1,18 +0,0 @@ -