Index: trunk/phase3/includes/parser/Preprocessor_Hash.php |
— | — | @@ -85,7 +85,7 @@ |
86 | 86 | // Check cache. |
87 | 87 | global $wgMemc, $wgPreprocessorCacheThreshold; |
88 | 88 | |
89 | | - $cacheable = strlen( $text ) > $wgPreprocessorCacheThreshold; |
| 89 | + $cacheable = $wgPreprocessorCacheThreshold !== false && strlen( $text ) > $wgPreprocessorCacheThreshold; |
90 | 90 | if ( $cacheable ) { |
91 | 91 | wfProfileIn( __METHOD__.'-cacheable' ); |
92 | 92 | |
Index: trunk/phase3/includes/parser/Preprocessor_DOM.php |
— | — | @@ -97,7 +97,7 @@ |
98 | 98 | global $wgMemc, $wgPreprocessorCacheThreshold; |
99 | 99 | |
100 | 100 | $xml = false; |
101 | | - $cacheable = strlen( $text ) > $wgPreprocessorCacheThreshold; |
| 101 | + $cacheable = $wgPreprocessorCacheThreshold !== false && strlen( $text ) > $wgPreprocessorCacheThreshold; |
102 | 102 | if ( $cacheable ) { |
103 | 103 | wfProfileIn( __METHOD__.'-cacheable' ); |
104 | 104 | |