mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 17:50:39 +00:00
Merge "Avoid an extra memcached lookup in MWEchoNotifUser::getNotificationCount()"
This commit is contained in:
commit
04468b5dc1
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue