MediaWiki REL1_30
HTMLCacheUpdate.php
Go to the documentation of this file.
1<?php
31 public $mTitle;
32
34 public $mTable;
35
40 function __construct( Title $titleTo, $table ) {
41 $this->mTitle = $titleTo;
42 $this->mTable = $table;
43 }
44
45 public function doUpdate() {
46 $job = HTMLCacheUpdateJob::newForBacklinks( $this->mTitle, $this->mTable );
47
48 JobQueueGroup::singleton()->lazyPush( $job );
49 }
50}
static newForBacklinks(Title $title, $table)
Class to invalidate the HTML cache of all the pages linking to a given title.
doUpdate()
Perform the actual work.
__construct(Title $titleTo, $table)
static singleton( $wiki=false)
Represents a title within MediaWiki.
Definition Title.php:39
Interface that deferrable updates should implement.
if(count( $args)< 1) $job