*
* @param $parserOutput mixed ParserOptions object, or boolean false
**/
-
protected function doCascadeProtectionUpdates( $parserOutput ) {
if ( !$this->isCurrent() || wfReadOnly() || !$this->mTitle->areRestrictionsCascading() ) {
return;
private $mArticle;
function __construct( $article, $key, $useParserCache, $parserOptions ) {
- parent::__construct( __CLASS__, $key );
+ parent::__construct( 'ArticleView', $key );
$this->mArticle = $article;
$this->cacheable = $useParserCache;
$this->parserOptions = $parserOptions;
* The remaining elements are passed through to the class as constructor
* parameters. Example:
*
- * $wgPoolCounterConf = array( 'Article::view' => array(
+ * $wgPoolCounterConf = array( 'ArticleView' => array(
* 'class' => 'PoolCounter_Client',
+ * 'timeout' => 15, // wait timeout in seconds
+ * 'workers' => 5, // maximum number of active threads in each pool
+ * 'maxqueue' => 50, // maximum number of total threads in each pool
* ... any extension-specific options...
* );
*/
* of the cpu of the pool. This is also known as 'Michael Jackson effect'.
* The PoolCounter provides semaphore semantics for restricting the number
* of workers that may be concurrently performing such single task.
+ *
+ * By default PoolCounter_Stub is used, which provides no locking. You
+ * can get a useful one in the PoolCounter extension.
*/
-
abstract class PoolCounter {
/* Return codes */