Manual:ParserOutputAccess.php

A service for getting the ParserOutput, i.e. the rendered output of a given wiki page. It is a high-level service, encapsulating concerns like caching and stampede protection via PoolCounter. Introduced in MW 1.36.

This class is NOT ready for use by extensions. Extensions should use WikiPage::getParserOutput() until this class has settled down.

Instantiation

edit

MediaWikiServices::getInstance()->getParserOutputAccess()

Public methods

edit
  • getCachedParserOutput() - return the rendered output for the given page if it is present in the cache.
  • getParserOutput() - returns the rendered output for the given page, with caching and concurrency control applied.

See also

edit