diff options
author | Domas Mituzas <midom@users.mediawiki.org> | 2005-05-04 19:24:10 +0000 |
---|---|---|
committer | Domas Mituzas <midom@users.mediawiki.org> | 2005-05-04 19:24:10 +0000 |
commit | 83514a73a5cc75aea5fb2f1a836b2a68ea768d03 (patch) | |
tree | b5a2fd4598267595a94843f27700cb164180ab7e | |
parent | 34d06e8aa7279a04d10bb67c067514b501646cee (diff) | |
download | mediawikicore-83514a73a5cc75aea5fb2f1a836b2a68ea768d03.tar.gz mediawikicore-83514a73a5cc75aea5fb2f1a836b2a68ea768d03.zip |
revert my cruft regarding incremental message cache building, it targetted wrong trouble in wrong path anyway
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/8868
-rw-r--r-- | includes/DefaultSettings.php | 1 | ||||
-rwxr-xr-x | includes/MessageCache.php | 10 | ||||
-rw-r--r-- | includes/MessageCacheHints.php | 18 |
3 files changed, 0 insertions, 29 deletions
diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 971bb981064c..2fb94b98bec8 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 64336585a28d..8af4484f917c 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 70b720fcdff6..000000000000 --- a/includes/MessageCacheHints.php +++ /dev/null @@ -1,18 +0,0 @@ -<? -/** - * @package MediaWiki - * @subpackage Cache - */ - -/** - * @package MediaWiki - * - * This class should provide methods for message cache key hints for various - * scopes - */ -class MessageCacheHints { - function get($scope='global') { - return array('TODO'); - } -} -?> |