X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FForkController.php;h=d87dfb1e720c6fb017b75358ecee49e3922e92dc;hb=bd756e66843bd1f346ebfed21d11996fde92ba62;hp=e5b44c2b501d3aa6263cbac7fb78d848df907031;hpb=04f68827d0e3e53ba2924ff7e9f67f6a7e485656;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ForkController.php b/includes/ForkController.php index e5b44c2b50..d87dfb1e72 100644 --- a/includes/ForkController.php +++ b/includes/ForkController.php @@ -115,15 +115,17 @@ class ForkController { } 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();