MediaWiki 1.42.1
MediaWiki\Parser\ParserCacheFactory Class Reference

Public Member Functions

 __construct (BagOStuff $parserCacheBackend, WANObjectCache $revisionOutputCacheBackend, HookContainer $hookContainer, JsonCodec $jsonCodec, StatsFactory $stats, LoggerInterface $logger, ServiceOptions $options, TitleFactory $titleFactory, WikiPageFactory $wikiPageFactory, GlobalIdGenerator $globalIdGenerator)
 
 getParserCache (string $name)
 Get a ParserCache instance by $name.
 
 getRevisionOutputCache (string $name)
 Get a RevisionOutputCache instance by $name.
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 

Detailed Description

Definition at line 42 of file ParserCacheFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Parser\ParserCacheFactory::__construct ( BagOStuff $parserCacheBackend,
WANObjectCache $revisionOutputCacheBackend,
HookContainer $hookContainer,
JsonCodec $jsonCodec,
StatsFactory $stats,
LoggerInterface $logger,
ServiceOptions $options,
TitleFactory $titleFactory,
WikiPageFactory $wikiPageFactory,
GlobalIdGenerator $globalIdGenerator )
Parameters
BagOStuff$parserCacheBackend
WANObjectCache$revisionOutputCacheBackend
HookContainer$hookContainer
JsonCodec$jsonCodec
StatsFactory$stats
LoggerInterface$logger
ServiceOptions$options
TitleFactory$titleFactory
WikiPageFactory$wikiPageFactory
GlobalIdGenerator$globalIdGenerator

Definition at line 106 of file ParserCacheFactory.php.

References MediaWiki\Config\ServiceOptions\assertRequiredOptions().

Member Function Documentation

◆ getParserCache()

MediaWiki\Parser\ParserCacheFactory::getParserCache ( string $name)

Get a ParserCache instance by $name.

Parameters
string$name
Returns
ParserCache

Definition at line 137 of file ParserCacheFactory.php.

References MediaWiki\MainConfigNames\CacheEpoch, and MediaWiki\MainConfigNames\ParserCacheFilterConfig.

◆ getRevisionOutputCache()

MediaWiki\Parser\ParserCacheFactory::getRevisionOutputCache ( string $name)

Get a RevisionOutputCache instance by $name.

Parameters
string$name
Returns
RevisionOutputCache

Definition at line 170 of file ParserCacheFactory.php.

References MediaWiki\MainConfigNames\CacheEpoch, and MediaWiki\MainConfigNames\OldRevisionParserCacheExpireTime.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Parser\ParserCacheFactory::CONSTRUCTOR_OPTIONS
Initial value:
= [
]
const OldRevisionParserCacheExpireTime
Name constant for the OldRevisionParserCacheExpireTime setting, for use with Config::get()
const ParserCacheFilterConfig
Name constant for the ParserCacheFilterConfig setting, for use with Config::get()
const CacheEpoch
Name constant for the CacheEpoch setting, for use with Config::get()
Access: internal

Definition at line 88 of file ParserCacheFactory.php.


The documentation for this class was generated from the following file: