aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ForkController.php
diff options
context:
space:
mode:
authorPlatonides <platonides@users.mediawiki.org>2011-03-06 23:07:36 +0000
committerPlatonides <platonides@users.mediawiki.org>2011-03-06 23:07:36 +0000
commit9ced2d5c609d94245ba0522324d251c9ba529821 (patch)
tree820ef7386d1dcd087e9e5850af98e62cbe126d7a /includes/ForkController.php
parent29eaa85c82078e164ab593c5e7fb534e1db9f7b9 (diff)
downloadmediawikicore-9ced2d5c609d94245ba0522324d251c9ba529821.tar.gz
mediawikicore-9ced2d5c609d94245ba0522324d251c9ba529821.zip
Follow up r83140. Add a clear() method to ObjectCache so that it can be used by ForkController.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/83416
Diffstat (limited to 'includes/ForkController.php')
-rw-r--r--includes/ForkController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/ForkController.php b/includes/ForkController.php
index e5b44c2b501d..1cd49e76b541 100644
--- a/includes/ForkController.php
+++ b/includes/ForkController.php
@@ -115,10 +115,10 @@ 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 );
}