}
protected function prepareEnvironment() {
- global $wgCaches, $wgMemc;
+ global $wgMemc;
// Don't share DB or memcached connections
wfGetLBFactory()->destroyInstance();
- $wgCaches = array();
+ ObjectCache::clear();
unset( $wgMemc );
}
/**
* Fork a number of worker processes.
+ *
+ * return string
*/
protected function forkWorkers( $numProcs ) {
$this->prepareEnvironment();