From 83514a73a5cc75aea5fb2f1a836b2a68ea768d03 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Wed, 4 May 2005 19:24:10 +0000 Subject: [PATCH] revert my cruft regarding incremental message cache building, it targetted wrong trouble in wrong path anyway --- includes/DefaultSettings.php | 1 - includes/MessageCache.php | 10 ---------- includes/MessageCacheHints.php | 18 ------------------ 3 files changed, 29 deletions(-) delete mode 100644 includes/MessageCacheHints.php 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 @@ - -- 2.20.1