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.


Definition at line 29 of file HtmlFileCacheUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

HtmlFileCacheUpdate::__construct ( array  $prefixedDbKeys)
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.

MergeableUpdate$updateUpdate of the same class type

Implements MergeableUpdate.

Definition at line 40 of file HtmlFileCacheUpdate.php.

◆ newFromTitles()

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

Definition at line 52 of file HtmlFileCacheUpdate.php.

References $prefixedDbKeys, and $title.

Referenced by HtmlCacheUpdater\purgeTitleUrls().

Member Data Documentation

◆ $prefixedDbKeys

string [] HtmlFileCacheUpdate::$prefixedDbKeys = []

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: