TemplateParser has an instance cache to avoid reading from APC
repeatedly for the same template, but that only works if the code uses
the same TemplateParser object.
Noticed while investigating T163154.
Change-Id: I645895a0965f7150e9a5aebc5a7788f27aa5a26d
*/
protected $rc_cache;
+ /**
+ * @var TemplateParser
+ */
+ protected $templateParser;
+
/**
* @param IContextSource|Skin $obj
* @param array $filterGroups Array of ChangesListFilterGroup objects (currently optional)
$this->message,
$this->linkRenderer
);
+ $this->templateParser = new TemplateParser();
}
/**
$this->rcCacheIndex++;
- $templateParser = new TemplateParser();
- return $templateParser->processTemplate(
+ return $this->templateParser->processTemplate(
'EnhancedChangesListGroup',
$templateParams
);