MediaWiki REL1_39
HTMLCacheUpdate Class Reference

HTML file cache invalidation all the pages linking to a given title. More...

Inheritance diagram for HTMLCacheUpdate:
Collaboration diagram for HTMLCacheUpdate:

Public Member Functions

 __construct (PageReference $pageTo, $table, $causeAction='unknown', $causeAgent='unknown')
 
 doUpdate ()
 Perform the actual work.
 
- Public Member Functions inherited from DataUpdate
 __construct ()
 
 getCauseAction ()
 
 getCauseAgent ()
 
 setCause ( $action, $user)
 
 setTransactionTicket ( $ticket)
 

Additional Inherited Members

- Static Public Member Functions inherited from DataUpdate
static runUpdates (array $updates)
 Convenience method, calls doUpdate() on every DataUpdate in the array.
 
- Protected Attributes inherited from DataUpdate
string $causeAction = 'unknown'
 Short update cause action description.
 
string $causeAgent = 'unknown'
 Short update cause user description.
 
mixed $ticket
 Result from LBFactory::getEmptyTransactionTicket()
 

Detailed Description

HTML file cache invalidation all the pages linking to a given title.

Deprecated
Since 1.34; Enqueue jobs from HTMLCacheUpdateJob::newForBacklinks instead. Hard deprecated since 1.39.

Definition at line 31 of file HTMLCacheUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

HTMLCacheUpdate::__construct ( PageReference $pageTo,
$table,
$causeAction = 'unknown',
$causeAgent = 'unknown' )
Parameters
PageReference$pageTo
string$table
string$causeActionTriggering action
string$causeAgentTriggering user

Definition at line 43 of file HTMLCacheUpdate.php.

References DataUpdate\$causeAction, DataUpdate\$causeAgent, and wfDeprecated().

Member Function Documentation

◆ doUpdate()

HTMLCacheUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 53 of file HTMLCacheUpdate.php.

References $job, DataUpdate\getCauseAction(), and DataUpdate\getCauseAgent().


The documentation for this class was generated from the following file: