Roan Kattouw wrote:
> 2011/4/9 Platonides <platoni...@gmail.com>:
>> Yes. Calling a template twice will only fetch the text once, won't
>> increase the 'used templates' counter...
>> Preprocessing of wikitext over a threshold is cached serialized (it's
>> easier to reprocess if it's too small).
>
> To clarify: there's an in-process cache, like Brion said, so a
> template that is used twice on the same page is only fetched and
> preprocessed once. However, this only applies to templates called with
> no parameters. If the template is passed parameters, this in-process
> cache won't be used, even if the same set of parameters is used twice.

I don't think so. The preprocess-to-tree is always the same, regardless
of the parameters, and it is always used. It is the expansion where
parameter change. I don't see that cache for parameterless templates,
maybe it's the mTplExpandCache?


_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to