Bug: T85565
Change-Id: I79e1b6aab30ef8ddfee2dd4f5f41e991562dbf13
wfGetLBFactory()->destroyInstance();
FileBackendGroup::destroySingleton();
LockManagerGroup::destroySingletons();
+ JobQueueGroup::destroySingletons();
ObjectCache::clear();
+ RedisConnectionPool::destroySingletons();
$wgMemc = null;
}
return self::$instances[$id];
}
+ /**
+ * Destroy all singleton() instances
+ * @since 1.27
+ */
+ public static function destroySingletons() {
+ self::$instances = array();
+ }
+
/**
* Get a connection to a redis server. Based on code in RedisBagOStuff.php.
*