Follows-up
17c91ad610 in which the exception was removed.
Change-Id: If0c8465d0e04f69f29f3f2602dac7ae4538f7542
if ( count( $bucket ) > 1 ) { // multiple peers
// Tracks peers that couldn't be queried recently to avoid lengthy
// connection timeouts. This is useless if each bucket has one peer.
- try {
- $this->statusCache = ObjectCache::getLocalServerInstance();
- } catch ( Exception $e ) {
- trigger_error( __CLASS__ .
- " using multiple DB peers without apc, xcache, or wincache." );
- }
+ $this->statusCache = ObjectCache::getLocalServerInstance();
break;
}
}
// Counter values would not survive accross script instances in CLI mode.
$cache = null;
if ( ( $flags & self::QUICK_VOLATILE ) && PHP_SAPI !== 'cli' ) {
- try {
- $cache = ObjectCache::getLocalServerInstance();
- } catch ( Exception $e ) {
- // not supported
- }
+ $cache = ObjectCache::getLocalServerInstance();
}
if ( $cache ) {
$counter = $cache->incr( $bucket, $count );