|
MediaWiki 1.43.1
|
PoolWorkArticleView for the current revision of a page, using ParserCache. More...
Inherits MediaWiki\PoolCounter\PoolWorkArticleView.

Public Member Functions | |
| __construct (string $workKey, PageRecord $page, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, ParserCache $parserCache, ILBFactory $lbFactory, ChronologyProtector $chronologyProtector, LoggerSpi $loggerSpi, WikiPageFactory $wikiPageFactory, bool $cacheable=true, bool $triggerLinksUpdate=false) | |
| doWork () | |
| fallback ( $fast) | |
| getCachedWork () | |
Public Member Functions inherited from MediaWiki\PoolCounter\PoolWorkArticleView | |
| __construct (string $workKey, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, LoggerSpi $loggerSpi) | |
| error ( $status) | |
| renderRevision (?ParserOutput $previousOutput=null, bool $doSample=false, string $sourceLabel='') | |
| Render the given revision. | |
Public Member Functions inherited from MediaWiki\PoolCounter\PoolCounterWork | |
| __construct (string $type, string $key, ?PoolCounter $poolCounter=null) | |
| execute ( $skipcache=false) | |
| Get the result of the work (whatever it is), or the result of the error() function. | |
| logError ( $status) | |
| Log an error. | |
Additional Inherited Members | |
Protected Member Functions inherited from MediaWiki\PoolCounter\PoolCounterWork | |
| isFastStaleEnabled () | |
| Should fast stale mode be used? | |
Protected Attributes inherited from MediaWiki\PoolCounter\PoolWorkArticleView | |
| LoggerSpi | $loggerSpi |
| ParserOptions | $parserOptions |
| RevisionRecord | $revision |
Protected Attributes inherited from MediaWiki\PoolCounter\PoolCounterWork | |
| bool | $cacheable = false |
| string | $type = 'generic' |
PoolWorkArticleView for the current revision of a page, using ParserCache.
Definition at line 44 of file PoolWorkArticleViewCurrent.php.
| MediaWiki\PoolCounter\PoolWorkArticleViewCurrent::__construct | ( | string | $workKey, |
| PageRecord | $page, | ||
| RevisionRecord | $revision, | ||
| ParserOptions | $parserOptions, | ||
| RevisionRenderer | $revisionRenderer, | ||
| ParserCache | $parserCache, | ||
| ILBFactory | $lbFactory, | ||
| ChronologyProtector | $chronologyProtector, | ||
| LoggerSpi | $loggerSpi, | ||
| WikiPageFactory | $wikiPageFactory, | ||
| bool | $cacheable = true, | ||
| bool | $triggerLinksUpdate = false ) |
| string | $workKey | |
| PageRecord | $page | |
| RevisionRecord | $revision | Revision to render |
| ParserOptions | $parserOptions | ParserOptions to use for the parse |
| RevisionRenderer | $revisionRenderer | |
| ParserCache | $parserCache | |
| ILBFactory | $lbFactory | |
| ChronologyProtector | $chronologyProtector | |
| LoggerSpi | $loggerSpi | |
| WikiPageFactory | $wikiPageFactory | |
| bool | $cacheable | Whether it should store the result in cache or not |
| bool | $triggerLinksUpdate | Whether it should trigger an opportunistic LinksUpdate or not |
Definition at line 73 of file PoolWorkArticleViewCurrent.php.
References MediaWiki\PoolCounter\PoolCounterWork\$cacheable, MediaWiki\PoolCounter\PoolWorkArticleView\$loggerSpi, MediaWiki\PoolCounter\PoolWorkArticleView\$parserOptions, MediaWiki\PoolCounter\PoolWorkArticleView\$revision, MediaWiki\Page\ProperPageIdentity\getId(), and MediaWiki\Revision\RevisionRecord\getPageId().
| MediaWiki\PoolCounter\PoolWorkArticleViewCurrent::doWork | ( | ) |
Reimplemented from MediaWiki\PoolCounter\PoolWorkArticleView.
Definition at line 108 of file PoolWorkArticleViewCurrent.php.
References MediaWiki\MediaWikiServices\getInstance(), MediaWiki\MainConfigNames\ParsoidSelectiveUpdateSampleRate, and MediaWiki\PoolCounter\PoolWorkArticleView\renderRevision().
| MediaWiki\PoolCounter\PoolWorkArticleViewCurrent::fallback | ( | $fast | ) |
| bool | $fast | Fast stale request |
Reimplemented from MediaWiki\PoolCounter\PoolCounterWork.
Definition at line 160 of file PoolWorkArticleViewCurrent.php.
| MediaWiki\PoolCounter\PoolWorkArticleViewCurrent::getCachedWork | ( | ) |
Reimplemented from MediaWiki\PoolCounter\PoolCounterWork.
Definition at line 147 of file PoolWorkArticleViewCurrent.php.