MediaWiki  REL1_24
HTMLCacheUpdateJob Class Reference

Job to purge the cache for all pages that link to or use another page or file. More...

Inheritance diagram for HTMLCacheUpdateJob:
Collaboration diagram for HTMLCacheUpdateJob:

List of all members.

Public Member Functions

 __construct ($title, $params= '')
 run ()
 Run the job.
 workItemCount ()

Protected Member Functions

 invalidateTitles (array $pages)

Detailed Description

Job to purge the cache for all pages that link to or use another page or file.

This job comes in a few variants:

  • a) Recursive jobs to purge caches for backlink pages for a given title. These jobs have have (recursive:true,table:
    set.
  • b) Jobs to purge caches for a set of titles (the job title is ignored). These jobs have have (pages:(<page id>="">:(<namespace>,<title>),...) set.

Definition at line 35 of file HTMLCacheUpdateJob.php.


Constructor & Destructor Documentation

HTMLCacheUpdateJob::__construct ( title,
params = '' 
)

Definition at line 36 of file HTMLCacheUpdateJob.php.

References Job\$params, and Job\$title.


Member Function Documentation

HTMLCacheUpdateJob::invalidateTitles ( array pages) [protected]
Parameters:
array$pagesMap of (page ID => (namespace, DB key)) entries

Definition at line 101 of file HTMLCacheUpdateJob.php.

References $batch, Job\$title, array(), as, HTMLFileCache\clearFileCache(), global, TitleArray\newFromResult(), SquidUpdate\newFromTitles(), wfGetDB(), and wfTimestampNow().

Referenced by run().

Run the job.

Returns:
bool Success

Reimplemented from Job.

Definition at line 42 of file HTMLCacheUpdateJob.php.

References array(), as, empty, Job\getRootJobParams(), global, invalidateTitles(), BacklinkJobUtils\partitionBacklinkJob(), JobQueueGroup\singleton(), and title.

Returns:
int Number of actually "work items" handled in this job
See also:
$wgJobBackoffThrottling
Since:
1.23

Reimplemented from Job.

Definition at line 159 of file HTMLCacheUpdateJob.php.


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