Followup r87340: Post-hook swap bodytext into a new bodycontent key and append printf...
[lhc/web/wiklou.git] / includes / ForkController.php
index e5b44c2..d87dfb1 100644 (file)
@@ -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();