BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
HTMLCacheUpdateJob Class Reference
Inheritance diagram for HTMLCacheUpdateJob:
Collaboration diagram for HTMLCacheUpdateJob:

Public Member Functions

 __construct (Title $title, array $params)
 
 run ()
 
 workItemCount ()
 
- Public Member Functions inherited from Job
 run ()
 
 __construct ($command, $title, $params=false)
 
 getType ()
 
 getTitle ()
 
 getParams ()
 
 getReleaseTimestamp ()
 
 getQueuedTimestamp ()
 
 getRequestId ()
 
 getReadyTimestamp ()
 
 ignoreDuplicates ()
 
 allowRetries ()
 
 workItemCount ()
 
 getDeduplicationInfo ()
 
 getRootJobParams ()
 
 hasRootJobParams ()
 
 isRootJob ()
 
 teardown ()
 
 insert ()
 
 toString ()
 
 getLastError ()
 

Static Public Member Functions

static newForBacklinks (Title $title, $table)
 
- Static Public Member Functions inherited from Job
static factory ($command, Title $title, $params=[])
 
static batchInsert ($jobs)
 
static newRootJobParams ($key)
 

Protected Member Functions

 invalidateTitles (array $pages)
 
- Protected Member Functions inherited from Job
 addTeardownCallback ($callback)
 
 setLastError ($error)
 

Additional Inherited Members

- Public Attributes inherited from Job
 $command
 
 $params
 
 $metadata = []
 
- Protected Attributes inherited from Job
 $title
 
 $removeDuplicates
 
 $error
 
 $teardownCallbacks = []
 

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 (recursive:true,table:
    set.
  • b) Jobs to purge caches for a set of titles (the job title is ignored). These jobs have (pages:(<page id>="">:(<namespace>,<title>),...) set.

Member Function Documentation

HTMLCacheUpdateJob::invalidateTitles ( array  $pages)
protected
Parameters
array$pagesMap of (page ID => (namespace, DB key)) entries
static HTMLCacheUpdateJob::newForBacklinks ( Title  $title,
  $table 
)
static
Parameters
Title$titleTitle to purge backlink pages from
string$tableBacklink table name
Returns
HTMLCacheUpdateJob

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