MediaWiki  master
HtmlFileCacheUpdate Class Reference

HTMLFileCache purge update for a set of titles. More...

Inheritance diagram for HtmlFileCacheUpdate:
Collaboration diagram for HtmlFileCacheUpdate:

Public Member Functions

 __construct (array $prefixedDbKeys)
 
 doUpdate ()
 Perform the actual work. More...
 
 merge (MergeableUpdate $update)
 Merge this update with $update. More...
 

Static Public Member Functions

static newFromTitles ( $titles)
 

Private Attributes

string[] $prefixedDbKeys = []
 List of page prefixed DB keys. More...
 

Detailed Description

HTMLFileCache purge update for a set of titles.

Since
1.35

Definition at line 29 of file HtmlFileCacheUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

HtmlFileCacheUpdate::__construct ( array  $prefixedDbKeys)
Parameters
string[]$prefixedDbKeysList of page prefixed DB keys

Definition at line 36 of file HtmlFileCacheUpdate.php.

References $prefixedDbKeys.

Member Function Documentation

◆ doUpdate()

HtmlFileCacheUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 61 of file HtmlFileCacheUpdate.php.

References HTMLFileCache\clearFileCache().

◆ merge()

HtmlFileCacheUpdate::merge ( MergeableUpdate  $update)

Merge this update with $update.

Parameters
MergeableUpdate$updateUpdate of the same class type

Implements MergeableUpdate.

Definition at line 40 of file HtmlFileCacheUpdate.php.

◆ newFromTitles()

static HtmlFileCacheUpdate::newFromTitles (   $titles)
static
Parameters
Traversable | Title[]$titlesArray or iterator of Title instances
Returns
HtmlFileCacheUpdate

Definition at line 52 of file HtmlFileCacheUpdate.php.

References $prefixedDbKeys, and $title.

Referenced by HtmlCacheUpdater\purgeTitleUrls().

Member Data Documentation

◆ $prefixedDbKeys

string [] HtmlFileCacheUpdate::$prefixedDbKeys = []
private

List of page prefixed DB keys.

Definition at line 31 of file HtmlFileCacheUpdate.php.

Referenced by __construct(), and newFromTitles().


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