bsw/jbe@0: MemberCount = mondelefant.new_class() bsw/jbe@0: MemberCount.table = 'member_count' bsw/jbe@0: bsw/jbe@0: function MemberCount:get() bsw@350: if not MemberCount.total_count then bsw@1075: local member_count = self:new_selector():optional_object_mode():exec() bsw@1075: if member_count then bsw@1075: MemberCount.total_count = member_count.total_count bsw@1075: end bsw@350: end bsw@350: return MemberCount.total_count bsw/jbe@0: end