public static function totalMembers()
    {
        $members = Podium::getInstance()->podiumCache->get('forum.memberscount');
        if ($members === false) {
            $members = User::find()->where(['!=', 'status', User::STATUS_REGISTERED])->count();
            Podium::getInstance()->podiumCache->set('forum.memberscount', $members);
        }
        return $members;
    }
public static function totalMembers()
    {
        $members = Podium::getInstance()->podiumCache->get('forum.memberscount');
        if ($members === false) {
            $members = User::find()->where(['!=', 'status', User::STATUS_REGISTERED])->count();
            Podium::getInstance()->podiumCache->set('forum.memberscount', $members);
        }
        return $members;
    }
public static function totalMembers ( ) { $ members = Podium :: getInstance ( ) -> podiumCache -> get ( 'forum.memberscount' ) ; if ( $ members === false ) { $ members = User :: find ( ) -> where ( [ '!=' , 'status' , User :: STATUS_REGISTERED ] ) -> count ( ) ; Podium :: getInstance ( ) -> podiumCache -> set ( 'forum.memberscount' , $ members ) ; } return $ members ; }
Counts number of registered users.
@return int
Counts number of registered users .