MediaWiki r40962 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r40961‎ | r40962 (on ViewVC)‎ | r40963 >
Date:18:36, 17 September 2008
Author:ialex
Status:old
Tags:
Comment:
Fix for r40937 (and per talk with brion): merge the RenderHash extension in core
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/User.php
===================================================================
--- trunk/phase3/includes/User.php	(revision 40961)
+++ trunk/phase3/includes/User.php	(revision 40962)
@@ -2442,7 +2442,7 @@
 	 * @return \type{\string} Page rendering hash
 	 */
 	function getPageRenderingHash() {
-		global $wgContLang, $wgUseDynamicDates, $wgLang;
+		global $wgUseDynamicDates, $wgRenderHashAppend, $wgLang, $wgContLang;
 		if( $this->mHash ){
 			return $this->mHash;
 		}
@@ -2462,6 +2462,8 @@
 		$extra = $wgContLang->getExtraHashOptions();
 		$confstr .= $extra;
 
+		$confstr .= $wgRenderHashAppend;
+
 		// Give a chance for extensions to modify the hash, if they have
 		// extra options or other effects on the parser cache.
 		wfRunHooks( 'PageRenderingHash', array( &$confstr ) );
Index: trunk/phase3/includes/DefaultSettings.php
===================================================================
--- trunk/phase3/includes/DefaultSettings.php	(revision 40961)
+++ trunk/phase3/includes/DefaultSettings.php	(revision 40962)
@@ -1037,6 +1037,12 @@
 $wgEnableParserCache = true;
 
 /**
+ * Append a configured value to the parser cache and the sitenotice key so
+ * that they can be kept separate for some class of activity.
+ */
+$wgRenderHashAppend = '';
+
+/**
  * If on, the sidebar navigation links are cached for users with the
  * current language set. This can save a touch of load on a busy site
  * by shaving off extra message lookups.

Follow-up revisions

Rev.Commit summaryAuthorDate
r40964Obsolete per r40962ialex18:45, 17 September 2008
Personal tools
Namespaces
Variants
Views
Actions
Site
Support
Download
Development
Communication
Toolbox