Merge "Avoid an extra memcached lookup in MWEchoNotifUser::getNotificationCount()"

This commit is contained in:
jenkins-bot 2015-07-21 22:05:33 +00:00 committed by Gerrit Code Review
commit 04468b5dc1

View file

@ -245,8 +245,11 @@ class MWEchoNotifUser {
$wgEchoConfig['version'] $wgEchoConfig['version']
); );
if ( $cached && $this->cache->get( $memcKey ) !== false ) { if ( $cached ) {
return (int)$this->cache->get( $memcKey ); $data = $this->cache->get( $memcKey );
if ( $data !== false ) {
return (int)$data;
}
} }
$attributeManager = EchoAttributeManager::newFromGlobalVars(); $attributeManager = EchoAttributeManager::newFromGlobalVars();