const RESTART_ON_ERROR = 1;
public function __construct( $numProcs, $flags = 0 ) {
const RESTART_ON_ERROR = 1;
public function __construct( $numProcs, $flags = 0 ) {
throw new MWException( "ForkController cannot be used from the web." );
}
$this->procsToStart = $numProcs;
throw new MWException( "ForkController cannot be used from the web." );
}
$this->procsToStart = $numProcs;
protected function prepareEnvironment() {
global $wgMemc;
// Don't share DB, storage, or memcached connections
protected function prepareEnvironment() {
global $wgMemc;
// Don't share DB, storage, or memcached connections
FileBackendGroup::destroySingleton();
LockManagerGroup::destroySingletons();
JobQueueGroup::destroySingletons();
FileBackendGroup::destroySingleton();
LockManagerGroup::destroySingletons();
JobQueueGroup::destroySingletons();