MediaWiki  1.34.0
HTMLCacheUpdate.php
Go to the documentation of this file.
1 <?php
29 class HTMLCacheUpdate extends DataUpdate {
31  private $title;
33  private $table;
34 
41  function __construct(
42  Title $titleTo, $table, $causeAction = 'unknown', $causeAgent = 'unknown'
43  ) {
44  $this->title = $titleTo;
45  $this->table = $table;
46  $this->causeAction = $causeAction;
47  $this->causeAgent = $causeAgent;
48  }
49 
50  public function doUpdate() {
52  $this->title,
53  $this->table,
54  [ 'causeAction' => $this->getCauseAction(), 'causeAgent' => $this->getCauseAgent() ]
55  );
56 
57  JobQueueGroup::singleton()->lazyPush( $job );
58  }
59 }
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:59
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:31
HTMLCacheUpdate
Class to invalidate the HTML/file cache of all the pages linking to a given title.
Definition: HTMLCacheUpdate.php:29
HTMLCacheUpdate\doUpdate
doUpdate()
Perform the actual work.
Definition: HTMLCacheUpdate.php:50
HTMLCacheUpdate\__construct
__construct(Title $titleTo, $table, $causeAction='unknown', $causeAgent='unknown')
Definition: HTMLCacheUpdate.php:41
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:33
DataUpdate\getCauseAction
getCauseAction()
Definition: DataUpdate.php:60