58 $this->cache = $cache;
60 $this->cacheable =
true;
72 $output = $status->getValue();
74 if ( $output && $output->isCacheable() ) {
75 $this->cache->save( $output, $this->revision, $this->parserOptions, $cacheTime );
85 $parserOutput = $this->cache->get( $this->revision, $this->parserOptions );
87 return $parserOutput ? Status::newGood( $parserOutput ) :
false;
93class_alias( PoolWorkArticleViewOld::class,
'PoolWorkArticleViewOld' );
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
PoolWorkArticleView for an old revision of a page, using a simple cache.
__construct(string $workKey, RevisionOutputCache $cache, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, LoggerSpi $loggerSpi)
PoolCounter protected work wrapping RenderedRevision->getRevisionParserOutput.
renderRevision()
Render the given revision.
ParserOptions $parserOptions
Set options of the Parser.