Daniel Barrett wrote:
> I have a parser tag <foo> that disables the parser cache in its callback 
> function, like this:
> 
> static function myParserTagCallback(&$parser) {
>   ...
>   $parser->disableCache();
>   ...
> }
> 
> However, sometimes the pages using this tag get cached anyway.  Should I also 
> need to call $wgParser->disableCache() for the global parser object?
> 
> DanB

No. Just $parser->disableCache(); should do it.
Are you sure the tags are executed? (eg. not in a not-taken  #if branch)
Do you have a testcase?


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to