Merge "Fix return in Preprocessor::cacheSetTree"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 16 Sep 2017 20:07:56 +0000 (20:07 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 16 Sep 2017 20:07:56 +0000 (20:07 +0000)
1  2 
includes/parser/Preprocessor.php

@@@ -62,7 -62,6 +62,7 @@@ abstract class Preprocessor 
         *
         * @param string $text
         * @param int $flags
 +       * @param string $tree
         */
        protected function cacheSetTree( $text, $flags, $tree ) {
                $config = RequestContext::getMain()->getConfig();
@@@ -70,7 -69,7 +70,7 @@@
                $length = strlen( $text );
                $threshold = $config->get( 'PreprocessorCacheThreshold' );
                if ( $threshold === false || $length < $threshold || $length > 1e6 ) {
-                       return false;
+                       return;
                }
  
                $cache = ObjectCache::getLocalClusterInstance();