Service object for triggering different kinds of page updates and generally notifying the local wiki of external changes.
More...
|
| __construct (JobQueueGroup $jobQueueGroup, LoggerInterface $logger, StatsdDataFactoryInterface $stats=null) |
|
| setPurgeCacheBatchSize ( $purgeCacheBatchSize) |
|
| setRecentChangesBatchSize ( $rcBatchSize) |
|
| scheduleRefreshLinks (array $titles, array $rootJobParams, $causeAction, $causeAgent) |
| Schedules RefreshLinks jobs for the given titles. More...
|
|
| purgeWebCache (array $titles, array $rootJobParams, $causeAction, $causeAgent) |
| Invalidates external web cached of the given pages. More...
|
|
| injectRCRecords (array $titles, EntityChange $change, array $rootJobParams=[]) |
| Injects an RC entry into the recentchanges, using the given title and attribs. More...
|
|
Service object for triggering different kinds of page updates and generally notifying the local wiki of external changes.
Used by ChangeHandler as an interface to the local wiki.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Client\Changes\WikiPageUpdater::__construct |
( |
JobQueueGroup |
$jobQueueGroup, |
|
|
LoggerInterface |
$logger, |
|
|
StatsdDataFactoryInterface |
$stats = null |
|
) |
| |
- Parameters
-
JobQueueGroup | $jobQueueGroup | |
LoggerInterface | $logger | |
StatsdDataFactoryInterface | null | $stats | |
◆ buildJobParams()
Wikibase\Client\Changes\WikiPageUpdater::buildJobParams |
( |
array |
$titles, |
|
|
array |
$rootJobParams |
|
) |
| |
|
private |
- Parameters
-
Title[] | $titles | |
array | $rootJobParams | |
- Returns
- array
- See also
- JobQueueChangeNotificationSender::getJobSpecification for relevant root job parameters.
◆ getPageParamForRefreshLinksJob()
Wikibase\Client\Changes\WikiPageUpdater::getPageParamForRefreshLinksJob |
( |
array |
$titles | ) |
|
|
private |
◆ incrementStats()
Wikibase\Client\Changes\WikiPageUpdater::incrementStats |
( |
|
$updateType, |
|
|
|
$delta |
|
) |
| |
|
private |
- Parameters
-
string | $updateType | |
int | $delta | |
◆ scheduleRefreshLinks()
Wikibase\Client\Changes\WikiPageUpdater::scheduleRefreshLinks |
( |
array |
$titles, |
|
|
array |
$rootJobParams, |
|
|
|
$causeAction, |
|
|
|
$causeAgent |
|
) |
| |
Schedules RefreshLinks jobs for the given titles.
- Parameters
-
Title[] | $titles | The Titles of the pages to update |
array | $rootJobParams | |
string | $causeAction | Triggering action |
string | $causeAgent | Triggering agent |
Implements Wikibase\Client\Changes\PageUpdater.
◆ setPurgeCacheBatchSize()
Wikibase\Client\Changes\WikiPageUpdater::setPurgeCacheBatchSize |
( |
|
$purgeCacheBatchSize | ) |
|
◆ setRecentChangesBatchSize()
Wikibase\Client\Changes\WikiPageUpdater::setRecentChangesBatchSize |
( |
|
$rcBatchSize | ) |
|
◆ $jobQueueGroup
Wikibase\Client\Changes\WikiPageUpdater::$jobQueueGroup |
|
private |
◆ $logger
Wikibase\Client\Changes\WikiPageUpdater::$logger |
|
private |
◆ $purgeCacheBatchSize
Wikibase\Client\Changes\WikiPageUpdater::$purgeCacheBatchSize = 300 |
|
private |
◆ $rcBatchSize
Wikibase\Client\Changes\WikiPageUpdater::$rcBatchSize = 300 |
|
private |
◆ $stats
Wikibase\Client\Changes\WikiPageUpdater::$stats |
|
private |
The documentation for this class was generated from the following file: