mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-25 00:05:29 +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']
|
||||
);
|
||||
|
||||
if ( $cached && $this->cache->get( $memcKey ) !== false ) {
|
||||
return (int)$this->cache->get( $memcKey );
|
||||
if ( $cached ) {
|
||||
$data = $this->cache->get( $memcKey );
|
||||
if ( $data !== false ) {
|
||||
return (int)$data;
|
||||
}
|
||||
}
|
||||
|
||||
$attributeManager = EchoAttributeManager::newFromGlobalVars();
|
||||
|
|
Loading…
Reference in a new issue