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

Public Member Functions

 __construct (Database $connection=null, TransactionalDeferredCallableUpdate $transactionalDeferredCallableUpdate=null)
 
 setLogger (LoggerInterface $logger)
 
 setOrigin ($origin)
 
 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

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

Member Function Documentation

SMW\MediaWiki\PageUpdater::addPage ( Title  $title = null)
Since
2.1
Parameters
Title | null$title
SMW\MediaWiki\PageUpdater::canUpdate ( )
Since
2.1
Returns
boolean
SMW\MediaWiki\PageUpdater::clear ( )
Since
2.1
SMW\MediaWiki\PageUpdater::doPurgeHtmlCache ( )
Since
2.1
SMW\MediaWiki\PageUpdater::doPurgeParserCache ( )
Since
2.1
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
SMW\MediaWiki\PageUpdater::doPurgeWebCache ( )
Since
2.1
SMW\MediaWiki\PageUpdater::doUpdate ( )
Since
3.0
SMW\MediaWiki\PageUpdater::isHtmlCacheUpdate (   $isHtmlCacheUpdate)
Since
3.0
Parameters
boolean$isHtmlCacheUpdate
SMW\MediaWiki\PageUpdater::markAsPending ( )
Since
3.0
Parameters
booloan$isPending
SMW\MediaWiki\PageUpdater::pushUpdate ( )

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

Since
3.0
SMW\MediaWiki\PageUpdater::setLogger ( LoggerInterface  $logger)
See also
LoggerAwareInterface::setLogger
Since
2.5
Parameters
LoggerInterface$logger
SMW\MediaWiki\PageUpdater::setOrigin (   $origin)
Since
3.0
Parameters
string$origin
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: