31use Psr\Log\LoggerInterface;
43 public const DEFAULT_NAME =
'pcache';
84 'OldRevisionParserCacheExpireTime',
128 if ( !isset( $this->parserCaches[$name] ) ) {
129 $this->logger->debug(
"Creating ParserCache instance for {$name}" );
132 $this->parserCacheBackend,
133 $this->options->get(
'CacheEpoch' ),
134 $this->hookContainer,
139 $this->wikiPageFactory,
140 $this->options->get(
'ParserCacheUseJson' )
143 $this->parserCaches[$name] =
$cache;
145 return $this->parserCaches[$name];
154 if ( !isset( $this->revisionOutputCaches[$name] ) ) {
155 $this->logger->debug(
"Creating RevisionOutputCache instance for {$name}" );
158 $this->revisionOutputCacheBackend,
159 $this->options->get(
'OldRevisionParserCacheExpireTime' ),
160 $this->options->get(
'CacheEpoch' ),
166 $this->revisionOutputCaches[$name] =
$cache;
168 return $this->revisionOutputCaches[$name];
if(ini_get('mbstring.func_overload')) if(!defined('MW_ENTRY_POINT'))
Pre-config setup: Before loading LocalSettings.php.
Class representing a cache/ephemeral data store.
Cache for ParserOutput objects corresponding to the latest page revisions.
Multi-datacenter aware caching interface.
MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.