MediaWiki  master
HTMLCacheUpdate.php
Go to the documentation of this file.
1 <?php
27 class HTMLCacheUpdate extends DataUpdate {
29  private $title;
31  private $table;
32 
39  public function __construct(
40  Title $titleTo, $table, $causeAction = 'unknown', $causeAgent = 'unknown'
41  ) {
42  $this->title = $titleTo;
43  $this->table = $table;
44  $this->causeAction = $causeAction;
45  $this->causeAgent = $causeAgent;
46  }
47 
48  public function doUpdate() {
50  $this->title,
51  $this->table,
52  [ 'causeAction' => $this->getCauseAction(), 'causeAgent' => $this->getCauseAgent() ]
53  );
54  JobQueueGroup::singleton()->lazyPush( $job );
55  }
56 }
DataUpdate\getCauseAgent
getCauseAgent()
Definition: DataUpdate.php:67
DataUpdate\$causeAgent
string $causeAgent
Short update cause user description.
Definition: DataUpdate.php:34
HTMLCacheUpdateJob\newForBacklinks
static newForBacklinks(Title $title, $table, $params=[])
Definition: HTMLCacheUpdateJob.php:56
DataUpdate
Abstract base class for update jobs that do something with some secondary data extracted from article...
Definition: DataUpdate.php:28
HTMLCacheUpdate\$title
Title $title
Definition: HTMLCacheUpdate.php:29
HTMLCacheUpdate
HTML file cache invalidation all the pages linking to a given title.
Definition: HTMLCacheUpdate.php:27
HTMLCacheUpdate\doUpdate
doUpdate()
Perform the actual work.
Definition: HTMLCacheUpdate.php:48
HTMLCacheUpdate\__construct
__construct(Title $titleTo, $table, $causeAction='unknown', $causeAgent='unknown')
Definition: HTMLCacheUpdate.php:39
Title
Represents a title within MediaWiki.
Definition: Title.php:42
DataUpdate\$causeAction
string $causeAction
Short update cause action description.
Definition: DataUpdate.php:32
JobQueueGroup\singleton
static singleton( $domain=false)
Definition: JobQueueGroup.php:70
$job
if(count( $args)< 1) $job
Definition: recompressTracked.php:50
HTMLCacheUpdate\$table
string $table
Definition: HTMLCacheUpdate.php:31
DataUpdate\getCauseAction
getCauseAction()
Definition: DataUpdate.php:60