Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\MediaWiki\PageUpdater Class Reference
Inheritance diagram for SMW\MediaWiki\PageUpdater:
Inheritance graph
[legend]
Collaboration diagram for SMW\MediaWiki\PageUpdater:
Collaboration graph
[legend]

Public Member Functions

 __construct (Database $connection=null, TransactionalCallableUpdate $transactionalCallableUpdate=null)
 
 setOrigin ( $origin)
 
 setFingerprint ( $fingerprint=null)
 
 isHtmlCacheUpdate ( $isHtmlCacheUpdate)
 
 markAsPending ()
 
 addPage (Title $title=null)
 
 waitOnTransactionIdle ()
 
 doPurgeParserCacheAsPool ()
 
 clear ()
 
 canUpdate ()
 
 pushUpdate ()
 
 doUpdate ()
 
 doPurgeParserCache ()
 
 doPurgeHtmlCache ()
 
 doPurgeWebCache ()
 

Detailed Description

GNU GPL v2+

Since
2.1
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\MediaWiki\PageUpdater::__construct ( Database  $connection = null,
TransactionalCallableUpdate  $transactionalCallableUpdate = null 
)
Since
2.5
Parameters
Database | null$connection
TransactionalCallableUpdate | null$transactionalCallableUpdate

Member Function Documentation

◆ addPage()

SMW\MediaWiki\PageUpdater::addPage ( Title  $title = null)
Since
2.1
Parameters
Title | null$title

◆ canUpdate()

SMW\MediaWiki\PageUpdater::canUpdate ( )
Since
2.1
Returns
boolean

◆ clear()

SMW\MediaWiki\PageUpdater::clear ( )
Since
2.1

◆ doPurgeHtmlCache()

SMW\MediaWiki\PageUpdater::doPurgeHtmlCache ( )
Since
2.1

◆ doPurgeParserCache()

SMW\MediaWiki\PageUpdater::doPurgeParserCache ( )
Since
2.1

◆ doPurgeParserCacheAsPool()

SMW\MediaWiki\PageUpdater::doPurgeParserCacheAsPool ( )

Controls the purge to use a direct DB access to make changes to avoid racing conditions for a large number of title entities.

Since
3.0

◆ doPurgeWebCache()

SMW\MediaWiki\PageUpdater::doPurgeWebCache ( )
Since
2.1

◆ doUpdate()

SMW\MediaWiki\PageUpdater::doUpdate ( )
Since
3.0

◆ isHtmlCacheUpdate()

SMW\MediaWiki\PageUpdater::isHtmlCacheUpdate (   $isHtmlCacheUpdate)
Since
3.0
Parameters
boolean$isHtmlCacheUpdate

◆ markAsPending()

SMW\MediaWiki\PageUpdater::markAsPending ( )
Since
3.0
Parameters
booloan$isPending

◆ pushUpdate()

SMW\MediaWiki\PageUpdater::pushUpdate ( )

Push pendingUpdates to be either deferred or direct executable, pending the setting invoked by PageUPdater::markAsPending.

Since
3.0

◆ setFingerprint()

SMW\MediaWiki\PageUpdater::setFingerprint (   $fingerprint = null)
Since
3.0
Parameters
string | null$fingerprint

◆ setOrigin()

SMW\MediaWiki\PageUpdater::setOrigin (   $origin)
Since
3.0
Parameters
string$origin

◆ waitOnTransactionIdle()

SMW\MediaWiki\PageUpdater::waitOnTransactionIdle ( )
Note
MW 1.29+ runs Title::invalidateCache in AutoCommitUpdate which has been shown to cause transaction issues when executed while a transaction hasn't finished therefore use 'onTransactionIdle' to isolate the execution.
Since
2.5

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

About | General disclaimer | Privacy policy